Very slow Sub Select Query
Oracle Version 9.2.0.7.0
Sorry to ask what is probably a stupid question that only serves to highlight how useless my SQL is!
I have this SQL which counts total requisition lines, and then counts how many of those lines have converted to Sales Orders:
SELECT prha.segment1
, (SELECT COUNT(*)
FROM po.po_requisition_lines_all prla
WHERE prla.requisition_header_id = prha.requisition_header_id)
req_line_ct
, (SELECT COUNT(*)
FROM po.po_requisition_lines_all prla
, ont.oe_order_lines_all sol
WHERE prla.requisition_line_id = sol.source_document_line_id
AND prla.requisition_header_id = prha.requisition_header_id)
so_line_ct
FROM po.po_requisition_headers_all prha
WHERE prha.creation_date >= '03-JUL-2008';The SQL works, but it is really, really slow. Is that just because it is running through lots and lots of data?
If I comment out the 2nd Count SELECT, it runs immediately. Perhaps it is so slow because the join between the po_requisition_lines_all and the oe_order_lines_all table is not via primary keys. Also, there is not an index on the oe_order_lines_all table related to the source_document_line_id field.
I'm sorry I haven't provided the full table designs for the tables involved - but the primary keys joining the requisition tables = via the requisition_headers_all table, and the join via the po_requisition_lines_all and the oe_order_lines_all table is not via a primary key or an index.
Sorry once again, for probably talking nonsense.
Please note this is a untested code as you didn't provide any of the required information like
a) Test Data
b) Relationship between the tables
You could try something like this. But as already @someoneelse suggested it is definitely worth reading the link.
select prha.segment1, count(case when prla.requisition_header_id is not null then 1 end) req_line_ct,
count(case when sol.source_document_line_id is not null then 1 end) so_line_ct
from
po.po_requisition_header_all prha,
po.po_requisition_lines_all prla,
ont.oe_order_lines_all sol
where
prha.creation_date >= to_date('03.07.2008','dd.mm.yyyy')
and
prha.requisition_header_id = prla.requisition_header_id (+)
and
prla.requsition_line_id = sol.source_document_line_id (+)
group by prha.segment1;Regards
Raj
Similar Messages
-
Dear Professionals:
The insert and query become very slow and somtimes hang. It wasn't like this before .. Network people added 100 pc to the network .. most of them not using the databse only internet and we are all in the same network .. Can this slow down the database Oracle 9.2.0.1.0 OS w2k server ? And how to know that the slowness is from network and not from query or inserts ?
Ahmed.Hi,
>>Network people added 100 pc to the network .. most of them not using the databse only internet. Can this slow down the database Oracle 9.2.0.1.0 OS w2k server ?
Maybe yes, maybe not, maybe a network performance problem ...
If you try to execute these DML's (insert, ...) and querys directly on the Server, what's happen ?
Cheers -
I have to do a task of finding records which matches the following logic.
My table has PID varchar(15), Amount varchar (50),Status varchar(20) columns.
Each PID can go thru changes in a period of time, in my case i dont have a data range I just have a flatfile which consists of three types of PID`s
123456 = Original_PID, Reversal =123456R1,Adjustment= 123456A1.
Basically What I am trying to find out if there are any original PID`s which has a Reversal or an Adjustment.
here`s the code I have started on... Can someone help me get it finished?
select R1. pid,a1.pid,org.pid from (
select SUBSTRING(Pid,1,11)as Original_PID, status, paid_amount as Amount from dbo.Q2STATUS)org
inner join (select SUBSTRING(Pid,1,13)as Original_Icn,status,paid_amount from dbo.Q2STATUS
where SUBSTRING(Pid,12,2) ='R1')r1 on r1.pid=org.pid
inner join (select SUBSTRING(claim_id,1,13)as Original_Icn,status,paid_amount from dbo.Q2STATUS
where SUBSTRING(Pid,12,2) ='A1')A1 on a1.Pid=org.PID
FMHi,
Please check following item
It uses a
SQL string function, please create it first
create table Q2STATUS (Pid nvarchar(200), Status varchar(20), paid_amount int)
insert into Q2STATUS select '123456 = Original_PID, Reversal =123456R1, Adjustment= 123456A1',NULL,250
with cte2 as (
select rn = row_number() over (order by pid), * from Q2STATUS
), cte as (
select cte2.*, s.id typeid, v.*
from cte2
cross apply dbo.split(cte2.Pid, ',') s
cross apply dbo.split(s.val, '=') v
), cte3 as (
select
rn, pid, status, paid_amount, max(pidtype) pidtype, max(pidval) pidval
from (
select
rn, Pid, status, paid_amount, typeid,
case when (typeid = 1 and id = 2) or (typeid <> 1 and id = 1) then ltrim(rtrim(val)) else null end as pidtype,
case when (typeid = 1 and id = 1) or (typeid <> 1 and id = 2) then ltrim(rtrim(val)) else null end as pidval
from cte
) g
group by rn, pid, status, paid_amount, typeid
select
cte2.rn, cte2.pid,
cte3.pidval as 'Original_PID',
cte4.pidval as 'Reversal',
cte5.pidval as 'Adjustment'
from cte2
left join cte3 on cte3.rn = cte2.rn and pidtype = 'Original_PID'
left join cte3 as cte4 on cte4.rn = cte2.rn and cte4.pidtype = 'Reversal'
left join cte3 as cte5 on cte5.rn = cte2.rn and cte5.pidtype = 'Adjustment'
Here is the result,
Please note that I have used
SQL CTE expressions a lot in the SQL query to prevent usage of sub-select and temp tables.
There is also a
SQL ROW_NUMBER() function used in the first SELECT statement to distinquish all items from each other instead of using the PID column value. Perhaps you have already an ID key column, you can use it too
SQL Server, SQL Server 2012 Denali and T-SQL Tutorials -
Stuck on CONNECT_BY ... PRIOR statement / sub-select Query
I am trying to generate a list of customisations made to our eBusiness system.
I'm using this example as a starting point:
SELECT *
FROM applsys.jdr_paths jp1
WHERE UPPER(jp1.path_name) = 'CUSTOMIZATIONS'
AND jp1.path_docid BETWEEN 18000 AND 18700;
_NAME PATH_DOCID PATH_OWNER_DOCID PATH_TYPE PATH_SEQ PATH_XML_V PATH_XML_E CREATED_BY CREATION_ LAST_UPDATED_BY LAST_UPDA LAST_UPDATE_LOGIN
customizations 18479 1650 PACKAGE -1 1 24-SEP-05 1 24-SEP-05 1
customizations 18665 18663 PACKAGE -1 1 24-SEP-05 1 24-SEP-05 1
customizations 18010 18009 PACKAGE -1 1 24-SEP-05 1 24-SEP-05 1I can then use this to extract the full path - for example, using the example above, the "PATH_OWNER_DOCID" = 18663:
SELECT LEVEL
, SYS_CONNECT_BY_PATH(p.path_name, '/') PATH
, p.path_docid
FROM (SELECT jp.path_name
, jp.path_seq
, jp.path_docid
, jp.path_owner_docid
FROM applsys.jdr_paths jp) p
CONNECT BY path_docid = PRIOR path_owner_docid
START WITH p.path_docid = 18665;
LEVEL PATH PATH_DOCID
1 /customizations 18665
2 /customizations/webui 18663
3 /customizations/webui/pagesetup 18661
4 /customizations/webui/pagesetup/printmgmt 18660
5 /customizations/webui/pagesetup/printmgmt/bpa 10174
6 /customizations/webui/pagesetup/printmgmt/bpa/ar 10173
7 /customizations/webui/pagesetup/printmgmt/bpa/ar/apps 2
8 /customizations/webui/pagesetup/printmgmt/bpa/ar/apps/oracle 1What I'd really like to do is to include the bottom most path (i.e. the most detailed, full path (path_docid = 1 in the e.g. above) in the first SQL statement.
That way, against each customisation, listed via this:
SELECT *
FROM applsys.jdr_paths jp1
WHERE UPPER(jp1.path_name) = 'CUSTOMIZATIONS'
AND jp1.path_docid BETWEEN 18000 AND 18700;I would like to include, possibly via a sub-select, the full path of the customisation - not all of the other lines leading up to the full path, just the full path itself.
But I can't work out how to combine the 2 SQLs, assuming it can be done at all.
Any advice much appreciated.
Thanks!If understand your question right... Just a MAX would work.
select (SYS_CONNECT_BY_PATH(object_name, '/'))
from
select object_name, rownum lv
from all_objects
where rownum <= 5
) t
START WITH lv = 1
CONNECT BY PRIOR lv = lv - 1
(SYS_CONNECT_BY_PATH(OBJECT_NAME,'/'))
/WRH$_SERVICE_WAIT_CLASS_PK
/WRH$_SERVICE_WAIT_CLASS_PK/WRH$_SERVICE_WAIT_CLASS
/WRH$_SERVICE_WAIT_CLASS_PK/WRH$_SERVICE_WAIT_CLASS/WRH$_SYS_TIME_MODEL_PK
/WRH$_SERVICE_WAIT_CLASS_PK/WRH$_SERVICE_WAIT_CLASS/WRH$_SYS_TIME_MODEL_PK/WRH$_SYS_TIME_MODEL
/WRH$_SERVICE_WAIT_CLASS_PK/WRH$_SERVICE_WAIT_CLASS/WRH$_SYS_TIME_MODEL_PK/WRH$_SYS_TIME_MODEL/WRH$_OSSTAT_PK
5 rows selected.
select max(SYS_CONNECT_BY_PATH(object_name, '/'))
from
select object_name, rownum lv
from all_objects
where rownum <= 5
) t
START WITH lv = 1
CONNECT BY PRIOR lv = lv - 1
MAX(SYS_CONNECT_BY_PATH(OBJECT_NAME,'/'))
/WRH$_SERVICE_WAIT_CLASS_PK/WRH$_SERVICE_WAIT_CLASS/WRH$_SYS_TIME_MODEL_PK/WRH$_SYS_TIME_MODEL/WRH$_OSSTAT_PK
1 row selected.vr
Sudhakar B. -
Very slow simple spatial query on 11g
I've created two spatial tables as following:
CREATE TABLE usregions
region_code NUMBER(1,0) NOT NULL,
shape ST_GEOMETRY,
CONSTRAINT usregions_pk PRIMARY KEY usregions(region_code)
INSERT INTO MDSYS.user_sdo_geom_metadata
(table_name, column_name, diminfo, srid)
VALUES ('USREGIONS', 'SHAPE',
sdo_dim_array (sdo_dim_element ('X', -180, 180, 0.5),
sdo_dim_element ('Y', -90, 90, 0.5)),
4269);
CREATE INDEX usregions_dx ON usregions (shape)
INDEXTYPE IS MDSYS.spatial_index;
CREATE TABLE usstates
state_code NUMBER(1,0) NOT NULL,
state_name VARCHAR2(30),
shape ST_GEOMETRY,
CONSTRAINT usstates_pk PRIMARY KEY usstates(state_code)
INSERT INTO MDSYS.user_sdo_geom_metadata
(table_name, column_name, diminfo, srid)
VALUES ('USSTATES', 'SHAPE',
sdo_dim_array (sdo_dim_element ('X', -180, 180, 0.5),
sdo_dim_element ('Y', -90, 90, 0.5)),
4269);
CREATE INDEX usstates_dx ON usstates (shape)
INDEXTYPE IS MDSYS.spatial_index;
I then loaded both tables with data from a shapefile.
The state shapefile is just the US map with all the states.
The region shapefile is the same US map with only 5 regions (Northeast, mid atlantic, mid west, south, and west).
I created the region shapefile from the state shapefile using ESRI ArcMap to dissolve the States border. So Pennsylvania, Virginia, Maryland, and DC is one polygon; New York and up is another polygon, etc.
I also created the same two tables, with the same data in SQL Server 2008 (KatMai), as well as in PostGRE 8.3.
Then I ran the following query:
SELECT s.state_name
FROM usstates s
WHERE s.shape.ST_Within((SELECT shape
FROM usregions
WHERE region_code=2))=1;
Region 2 is Mid Atlantic and I was expecting to see:
STATE_NAME
District of Columbia
Maryland
Pennsylvania
Virgina
Instead, Oracle 11g only returned "District of Columbia"
The query took 6.4 seconds to run.
On SQL Server 2008, I got the expected result and it took 0.4 seconds to execute.
On PostGRE 8.3, I also got the expected result and it took 0.5 seconds to execute.
Why is Oracle not returning all the States? Is this a bug?
Am I doing something wrong???
Thanks.save data into internal backup format ???backup format doesn't matter, program is just reading rows from backup file and inserting them into database - so is generating SQL insert commands
>
and then it will restore it back to database. It isdone by inserts, each 500 row commit
I can't follow your post, but...yuck.program is just inserting records into T2 table, but on T2 table is trigger and inside trigger is SQL command "UPDATE TABLE T3 ..... where ......". In this time is T3 already filled with 60569 records.
And inserting going slower and slower. Without trigger is speed ok. But on oracle 10g speed is ok with this trigger. So I am concern about what could changed in oracle 11g and cause such behavior.
I will try produce some simple test example -
Report running very slow compared to Query Analyzer - high TimeDataRetrieval
Hi,
I have a report in SQL Reporting Services 2005 which calls a stored proc and the report takes a very long time to run and sometimes returns zero records. But when i run the stored proc in query analyzer it takes about 4 seconds!!
I have checked the execution log on the RS using the below sql:
Code Snippet
use ReportServer
Select * from ExecutionLog with (nolock) order by TimeStart DESC
It shows that i have a large amount of time for the dataretrieval (601309ms, about 10mins) and does not return any records most likely because of a query timeout:
TimeDataRetrieval TimeProcessing TimeRendering Source Status ByteCount RowCount
601309 2227 3 1 rsSuccess 4916 0
The weird thing is that when i run it in query analyzer, i get about 400 records in 4 seconds !!
I dont understand what RS is doing to take up so much time like this to retrieve data.
The report is very simple - it basically returns the records straight out into a table.
The only thing I somewhat suspected was a parameter data type conflict between RS and SQL, specifically dates. I have a start and end date parameter in the report - i tried specifying this as date and string to see if it made any difference but it didn't.
Any help would be greatly appreciated.Hi Mark,
I didn't say it was an issue of parameter sniffing, and I didn't point you towards the good article about that <s>. I asked you whether you had read the article, described to you earlier in the thread.
What I said was that it might be an issue of appropriate and dynamic query optimization, versus a cached query plan. Parameter sniffing is only one of many ways that SQL Server tries to figure out how to optimize a query. I thought the article did a good job of discussing some of what goes on during this process, and that by absorbing that you could think of ways to handle the wider issue that would be appropriate to your code. I also pointed you to a thread in which I discussed this in more detail.
While there are truly many issues with the date controls in the default parameter interface and how they behave, I don't think that what you're experiencing with the date format is implicated in the performance issue. I guess it *might* be if (say) there is a non-default param value in your proc but your report parameter allows nulls.
Let's say the report server database has a different date default than your production database in your system. I have never sat down and tested this scenario and I guess it might cause problems, So we'll look at that first.
Whether the date format is at fault is really easy to prove one way or the other, and once proven can be pretty easy to fix:
Create a test parameter that is of string type. SQL Server is really good about dynamic conversion of string dates to date types as you probably know.
place values (formatted however you want) into this version of the parameter instead of your date control parameter. Use valid dates, in both formats.
Does your performance change?
Do you get the right results but bad performance with US format date strings versus right results with good performance with AU date values?
Do you get the WRONG results with US format date strings, or with AU date strings?
Try additional permutations involving casting/converting in your proc.
FWIW, go ahead in the Query Analyzer and put the SAME values you see in the log into your tests there (in US format, I mean). Do you get the CORRECT results? Does performance change? Hold this thought and see below.
Another thing you can do is look at the query plan as presented by the Query Analyzer when you present the arguments different ways. See #7 above -- try presenting the date in different formats. Does the plan show the same path and the same indexes in use each time, or are some not possible because of the way the date has to be converted? When this happens, the issue is usually that the conversion must be done for each line compared in the filter. You can fix this really easily in most cases by cast/convert in the procedure so that your SELECT line is only doing that work once.
If the plans are different, and perhaps the indexes used are different and you *can't* fix it by fixing the date before the SELECT, do you need to add an index, or perhaps rebuild one?
Moving on from the date format, as I said before it may be really important NOT to go by your interactive Query Analyzer performance because what you do there may not be used by SQL Server in determining a query plan to cache and re-use. In case you haven't read the other discussion that I pointed you to at (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1827775&SiteID=1), think about using RECOMPILE or other options that will force a more dynamic investigation of the query.
>L< -
Database performance is very very slow when I query metadata
Hi,
I have installed Oracle 11G R2 recently and Its a oracle Standard edition single instance installation. When I run the below query it takes more than an 1minute to return the data. I have did another installation of oracle 11GR2 on on my laptop and it takes not more than 10sec. Why is this difference. Why is that query of meta data is taking so long. How to debug. Any help!
select component, final_size, end_time from v$sga_resize_ops where initial_size <> final_size order by end_time;
This is the query and its a direct select to a V$ table.
On one machine it takes 1min 31 sec.
SQL> r
1* select component, final_size, end_time from v$sga_resize_ops where initial_size <> final_size order by end_time
COMPONENT FINAL_SIZE END_TIME
shared pool 1157627904 30-SEP-10
large pool 16777216 30-SEP-10
DEFAULT buffer cache 3036676096 30-SEP-10
streams pool 16777216 30-SEP-10
java pool 16777216 30-SEP-10
Elapsed: 00:01:31.50
SQL>
ON LAPTOP:
java pool 4194304 03-SEP-10
streams pool 4194304 03-SEP-10
DEFAULT buffer cache 146800640 03-SEP-10
large pool 4194304 03-SEP-10
shared pool 230686720 03-SEP-10
DEFAULT buffer cache 142606336 03-SEP-10
shared pool 234881024 03-SEP-10
DEFAULT buffer cache 138412032 03-SEP-10
shared pool 239075328 03-SEP-10
TAKES <1 SECTKPROF: Release 11.2.0.1.0 - Development on Fri Oct 1 07:53:01 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Trace file: knk6_ora_487590.trc
Sort options: default
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
SQL ID: 4tk6t8tfsfqbf
Plan Hash: 0
alter session set sql_trace=true
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
total 1 0.00 0.00 0 0 0 0
Misses in library cache during parse: 0
Misses in library cache during execute: 1
Optimizer mode: FIRST_ROWS
Parsing user id: SYS
SQL ID: 9babjv8yq8ru3
Plan Hash: 0
BEGIN DBMS_OUTPUT.GET_LINES(:LINES, :NUMLINES); END;
call count cpu elapsed disk query current rows
Parse 2 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 3 0 2
Fetch 0 0.00 0.00 0 0 0 0
total 4 0.00 0.00 0 3 0 2
Misses in library cache during parse: 0
Optimizer mode: FIRST_ROWS
Parsing user id: SYS
select component,
final_size,
end_time
from v$sga_resize_ops
where initial_size <> final_size order by end_time
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 2 90.78 90.97 0 0 0 5
total 4 90.78 90.97 0 0 0 5
Misses in library cache during parse: 0
Optimizer mode: FIRST_ROWS
Parsing user id: SYS
Rows Row Source Operation
5 SORT ORDER BY (cr=0 pr=0 pw=0 time=0 us cost=1 size=247 card=1)
5 NESTED LOOPS (cr=0 pr=0 pw=0 time=72903784 us cost=0 size=247 card=1)
12010 MERGE JOIN CARTESIAN (cr=0 pr=0 pw=0 time=19546 us cost=0 size=166 card=1)
5 NESTED LOOPS (cr=0 pr=0 pw=0 time=200 us cost=0 size=134 card=1)
14 FIXED TABLE FULL X$KMGSCT (cr=0 pr=0 pw=0 time=91 us cost=0 size=60 card=1)
5 FIXED TABLE FULL X$KMGSOP (cr=0 pr=0 pw=0 time=0 us cost=0 size=74 card=1)
12010 BUFFER SORT (cr=0 pr=0 pw=0 time=9677 us cost=0 size=3200 card=100)
2402 FIXED TABLE FULL X$KSPPCV (cr=0 pr=0 pw=0 time=3411 us cost=0 size=3200 card=100)
5 FIXED TABLE FULL X$KSPPI (cr=0 pr=0 pw=0 time=0 us cost=0 size=81 card=1)
SQL ID: aam2chsgpj7mb
Plan Hash: 0
alter session set sql_trace=false
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.00 0.00 0 0 0 0
Misses in library cache during parse: 1
Optimizer mode: FIRST_ROWS
Parsing user id: SYS
OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
Parse 4 0.00 0.00 0 0 0 0
Execute 5 0.00 0.00 0 3 0 2
Fetch 2 90.78 90.97 0 0 0 5
total 11 90.78 90.97 0 3 0 7
Misses in library cache during parse: 1
Misses in library cache during execute: 1
OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 0 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
total 0 0.00 0.00 0 0 0 0
Misses in library cache during parse: 0
5 user SQL statements in session.
0 internal SQL statements in session.
5 SQL statements in session.
Trace file: knk6_ora_487590.trc
Trace file compatibility: 11.1.0.7
Sort options: default
1 session in tracefile.
5 user SQL statements in trace file.
0 internal SQL statements in trace file.
5 SQL statements in trace file.
4 unique SQL statements in trace file.
71 lines in trace file.
91 elapsed seconds in trace file.
Edited by: user13131431 on Oct 1, 2010 5:01 AM -
Very slow Access 2002 query with Windows 7
I need help troubleshooting consistently slow queries in an Access 2002 database with Windows 7.
I’m running a temporary query in a local copy of a back end database with only tables. The identical query will take just 2-3 seconds with Windows XP but 30-60 seconds with Windows 7. Multiple Windows 7 workstations are all slow and
all Windows XP machines run the query quickly. I even used JetShowPlan on both workstations to compare and the plans are identical. Two tables are involved with rushmore used on the first and a full scan on the second table of about 150,000 records.
Even in XP Mode on the Windows 7 machine the query still takes only about 10 seconds. Anyone have any ideas why Access/Jet on Windows 7 can be so slow? Thanks for any ideas.
Rick CollardHi Tony,
Thanks for the pointer - I had found that one earlier and tried it - did not help. I think the HP ProtectTools Security Manager is Normally loaded
on Laptops - my problem is on Workstation. I did a test of 2007 Access in the Virtual XP Mode window - There is works 'normally'.
To give you an idea how Slow a query in 2007 access/W7 is;
I started a search for part numbers with 'busbar' in their description...
on W7 - Database is LOCAL to WS and upgraded to Office 2007
I then opened an XP Mode window
Opened the 2007 Access DB to the 'normal' database located on fileserver.
enter the same Part search
counted to 10 - 19 Parts found
Closed DB
Closed XP Mode window
Waited about 2 minutes... same 19 parts found.... Wonderful!
I will wait till my MS Rep can get me in line for the Hot fix or MS releases it. Till then I will teach the Users how to Use XP Mode.
-db -
Encore CS5 very slow when selecting the File tab
Good morning.
This is the first I have ever experienced this. Encore CS5 is extremely slow when I try to select the file Tab. All other tabs like Edit are fine. It is also takes forever to Save anytime. I usually just use Encore for short no menu DVD's I'm building a DVD with a few sideshows and an hour of video. I haven't started the menu yet. I updated the latest from Adobe yesterday and I am current with the Window 7 64 bit updates. All other applications in the Master Suite work fine. I think my system should be enough to run Encore without any problems. Any suggestions? I'm all ears!...
CASE: Cooler Master HAF 932
MB: Gigabyte GA EX 58 UD5
VIDEO: Nvidia FX 4800
CPU: i7-860 2.8 Ghz 8mb Cache
COOLER: Zalman CNPS9700LED
RAM: G Skill F3-8500CL7S Rip Jaw 24 GB
HD: (3) Western Digital Caviar Black 2TB 7200/64MB/Sata
HD: (2) Western Digital Caviar Black 500GB 7200/64MB/Sata built as RAID0
HD: (1) Raptor 500GB for Operating System
SOUND: Creative X-fi SB 1040EF
OS: Windows 7 Home premium 64 Bit
Thanks,
ArtDo you have Windows hard drive Indexing ON or OFF?
Some Win7 notes...
http://forums.adobe.com/thread/789809?tstart=0
More Tips http://windowssecrets.com/comp/110127
Utilities http://windowssecrets.com/comp/110106 (Soluto for startup)
Win7 Help http://social.technet.microsoft.com/Forums/en-US/category/w7itpro/
Win7 Configuration Article http://windowssecrets.com:80/comp/100218
Win7 Monitor http://windowssecrets.com:80/comp/100304
Win7 Optimizing http://www.blackviper.com/Windows_7/servicecfg.htm
Win7 Virtual XP http://www.microsoft.com/windows/virtual-pc/
More on Virtual XP http://blogs.zdnet.com/microsoft/?p=5607&tag=col1;post-5607
Win7 Adobe Notes http://kb2.adobe.com/cps/508/cpsid_50853.html#tech
Win7 Adobe Update Server Problem http://forums.adobe.com/thread/586346?tstart=0
An Adobe Win7 FAQ http://forums.adobe.com/thread/511916?tstart=0
More Win7 Tips/FAQ http://forums.adobe.com/thread/513640?tstart=0
Processes http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx
Compatibility http://www.microsoft.com/windows/compatibility/windows-7/en-us/Default.aspx
Win7 God Mode http://forums.adobe.com/thread/595255?tstart=0
CS5 Install Error http://forums.adobe.com/thread/629281?tstart=0
CS5 Help Problem http://kb2.adobe.com/cps/842/cpsid_84215.html
Win7 and Firewire http://forums.adobe.com/thread/521842?tstart=0
http://lifehacker.com/5634978/top-10-things-to-do-with-a-new-windows-7-system
http://www.downloadsquad.com/2009/05/29/7-free-windows-7-tweaking-utilities/
Win7 64bit Crashing and "a" fix http://forums.adobe.com/thread/580435?tstart=0
http://prodesigntools.com/if-any-problems-downloading-or-installing-cs5.html
Harm's Tools http://forums.adobe.com/thread/504907
Also http://www.tune-up.com/products/tuneup-utilities/
Also http://personal.inet.fi/business/toniarts/ecleane.htm -
Hello:
I need to write a query which identifies the patients who exist in the master table for a given organization and trait and do not exist in the final table.
For example, for organization 499 and trait 43926, I have a total of 119 patients. After some processing, out of these 119 patients, only 106 patients get inserted into the final_traits table.
This leaves us with a difference of 13 patients. I want a query that will give me this list of 13 patients.
In order to achieve this, I need to use three tables:
1. Master_traits which contains the entire patient population. The field needed from this table is dwkey_patient.
2. Patient which contains the demographic info. The three fields needed from this table are dwkey_patient, patient_key, and name.
3. Final_traits which contains the detail trait info. The field needed from here is patient_key.
To retrieve the 119 patients along with their names, the first join needs to be between “master_traits” and “patient” using the dwkey_patient field.
From these 119 patients, to determine which ones did NOT get inserted into the final_traits table, the second join will be between “patient” and “final_traits” using the patient_key field. This should give me 13 patients.
So far, I have the portion of the query which gives me the total population of 119.
select a.dwkey_patient, b.patient_key, b.name
from master_traits a, patient b
where a.dwkey_patient = b.dwkey_patient
and a.dwkey_org = 499
and a.dwkey_approval > 0
and a.dwkey_traittype = 43926
and a.out_of_range is null
order by dwkey_patient asc;
[/code]
I am having a tough time getting the second portion of the query to show me the 13 patients who were not inserted.
Can someone help?
Thanks.Well,
It works for me...
MHO%xe> with master_traits as
2 ( select 1234 dwkey_patient from dual union all
3 select 2345 from dual union all
4 select 3456 from dual union all
5 select 4567 from dual union all
6 select 5678 from dual
7 )
8 , patient as
9 ( select 1234 dwkey_patient, 900 patient_key, 'smith' name from dual union all
10 select 2345, 901, 'jones' name from dual union all
11 select 3456, 902, 'murphy' name from dual union all
12 select 4567, 903, 'brown' name from dual union all
13 select 5678, 904, 'miller' name from dual
14 )
15 , final_traits as
16 ( select 900 patient_key from dual union all
17 select 901 from dual union all
18 select 903 from dual
19 ) -- actual query starts here:
20 select a.dwkey_patient, b.patient_key, b.name
21 from master_traits a
22 , patient b
23 , final_traits c
24 where a.dwkey_patient = b.dwkey_patient
25 -- and a.dwkey_org = 499
26 -- and a.dwkey_approval > 0
27 -- and a.dwkey_traittype = 43926
28 -- and a.out_of_range is null
29 and b.patient_key = c.patient_key(+)
30 and c.patient_key is null
31 ;
DWKEY_PATIENT PATIENT_KEY NAME
5678 904 miller
3456 902 murphySo, you might need to adjust your WHERE clause I commented out in above example...
MHO%xe> with master_traits as
2 ( select 1234 dwkey_patient from dual union all
3 select 2345 from dual union all
4 select 3456 from dual union all
5 select 4567 from dual union all
6 select 5678 from dual
7 )
8 , patient as
9 ( select 1234 dwkey_patient, 900 patient_key, 'smith' name from dual union all
10 select 2345, 901, 'jones' name from dual union all
11 select 3456, 902, 'murphy' name from dual union all
12 select 4567, 903, 'brown' name from dual union all
13 select 5678, 904, 'miller' name from dual
14 )
15 , final_traits as
16 ( select 900 patient_key from dual union all
17 select 901 from dual union all
18 select 903 from dual
19 )
20 select a.dwkey_patient, b.patient_key, b.name
21 from master_traits a, patient b
22 where a.dwkey_patient = b.dwkey_patient
23 -- and a.dwkey_org = 499
24 -- and a.dwkey_approval > 0
25 -- and a.dwkey_traittype = 43926
26 -- and a.out_of_range is null
27 and not exists ( select null
28 from final_traits c
29 where c.patient_key = b.patient_key )
30 ;
DWKEY_PATIENT PATIENT_KEY NAME
5678 904 miller
3456 902 murphyWorks too (ofcourse)
Edited by: hoek on Jun 4, 2009 8:37 PM -
4S + IOS7 = very slow photo selection
Since upgrading to IOS7, I find that on my 4S, selecting a photo is glacially slow.
By this I mean:
If I'm in the Photos app and want to forward, post to facebook, etc. The little box with the up arrow. If I hit that, there's usually a 30-60 second delay, and then I get the photo shrink and "next" button. It's not a screen problem because that part of the screen works fine in other apps.
If I'm in a Messages app and want to select a photo to send, the Choose button takes a similar 30-60 second delay.
I don't have a ton of photos on my phone. I tried removing all of them but even with a few photos the problem continues. It's always when I go to select a photo. Otherwise, the phone works fine.
Any ideas!?Hi masterwil,
The article below may be able to help you troubleshoot your Wi-Fi issue.
iOS: Troubleshooting Wi-Fi networks and connections
http://support.apple.com/kb/TS1398?viewlocale=en_US
Reset network settings by tapping Settings > General > Reset > Reset Network Settings.
Note: This will reset all network settings including previously connected Wi-Fi networks and passwords
iOS and OS X: Recommended settings for Wi-Fi routers and access points
http://support.apple.com/kb/HT4199
I hope this information helps ....
Have a great day!
- Judy -
Very slow when selecting objects
I have a problem with illustrator CS5. Whenever I select an object on the canvas by clicking on said object Illustrator freezes for a few seconds (showing me the spinner). This happens whether there is 1 object or 50 on the canvas so it certainly has nothing to do with the number of objects. Oddly, if I click on the canvas and drag-and-select objects this does not happen; they are selected immediately. Of course most of the times I forget this and have to wait constantly because I accidently selected an object directly, which is extremely annoying and almost to the point of unworkable.
Anybody got any ideas about how to solve this?
Sys specs:
MacBook Pro
Mac OS X 10.6.7
2.66Ghz Intel Core i7
8GB 1067 MHz DDR3Many reasons, to help narrow it down create a new document draw one lement and let us know if you have a slowdown.
Reset your preferences.
Cmd-Opt-Ctrl-Shift when restarting AI on a Mac or Alt-Crtl-Shift on a PC to reset to the defaults.
Flush Cache (Good for slowdown)
delete users\(username)\library\preferences\com.adobe.mediabrowser.plist
FONTS
Fo you have alot of fonts loaded. You may have a corrupt font. Close any you do nto use often
Permissions
Run applications >> utilities >> disk utility and repair permissions.
Ram
Run applications >> utilities >> system profiler and check the status of your ram and hard drive
HUH Error
If the test you did in the beginining returned your computer to a speedy apce, search the forums for HUH error.
OnyX
Download onyx from apples site for your OS version and do the cleaning tab. -
Very slow broadband sppeds query
HI
Anyone could advise me please had option3 broadband unlimited 20meg but since friday after it was installed been getting less than 1.5 meg and on occassion get 1816 kbs
Have been advised by BT help desk that it takes 10 days for it to stabilise with a correct higher speed
I am not sure about this as I have ran the speed test
Download Speed
1816 Kbps
0 Kbps
2000 Kbps
Max Achievable Speed
Download speed achieved during the test was - 1816 Kbps
For your connection, the acceptable range of speeds is 400-2000 Kbps.
Additional Information:
Your DSL Connection Rate :5088 Kbps(DOWN-STREAM), 416 Kbps(UP-STREAM)
IP Profile for your line is - 2000 Kbps
can anyone advise me why it says ip profile 2000 kbps as it means to me that my line is capped to only accept speeds up to 2000
Or should I ride it out till next sunday when 10 days are up to see if there is a change.
this is info from my hub 3
ADSL Line Status
Connection Information
Line state:
Connected
Connection time:
1 days, 00:58:08
Downstream:
4.969 Mbps
Upstream:
416 Kbps
ADSL Settings
VPI/VCI:
0/38
Type:
PPPoA
Modulation:
G.992.1 Annex A
Latency type:
Fast
Noise margin (Down/Up):
7.0 dB / 7.0 dB
Line attenuation (Down/Up):
35.4 dB / 31.5 dB
Output power (Down/Up):
19.7 dBm / 12.1 dBm
FEC Events (Down/Up):
0 / 0
CRC Events (Down/Up):
1174 / 26
Loss of Framing (Local/Remote):
0 / 0
Loss of Signal (Local/Remote):
0 / 0
Loss of Power (Local/Remote):
0 / 0
HEC Events (Down/Up):
1616 / 0
Error Seconds (Local/Remote):
18965 / 312
Looks as if the HUB as had a restart automatically as I have had it on since friday afternoon
Please can someone advise me pleaseYou are in your initial 10 day stabilisation period (as you know), which means your line will see various resyncs of the line to find the fastest, but most stable sync rate for your line. You will see various IP profiles (speeds depending on your sync rates) over the 10 day period. At the moment your IP profile, speeds and sync rates are as they should be by the looks of things.
At the end of the day you will have to wait the 10 days and then see what your line IP profile is. After that if things aren't right you can ask for the line to be looked at.
Hope this helps & welcome to the forums
Kind regards... Tom
BT Infinity2: -
Sub-Select SQL query in Oracle BI Answers
Hi
What's the proper usage of Sub-Select SQL query in Oracle BI Answers Version Oracle Business Intelligence 10.1.3.2.1?
I get [SQL_STATE: HY000] [nQSError: 10058] A general error has occured when trying to Sub Select query like:
itemno = (SELECT MIN(orders.itemno) FROM mydatabase where rownum < 2 order by orders.itemno)Maybe the best is to create a new physical and logical object for your sub-select and join this with your current objects.
-
Exchange 2013 CU5 , Exchange Power Shell very very very slow reasponse when using get command.
First my organize has Exchange on 2 site like
site A (internet facing) : 2CAS 2 MB all are Services pack1
site B (DR Site , no user active on this site) : 2CAS 2MB all are Services pack 1
so today I upgrade Exchange 2013 from SP1 to CU5 start on "site B" and I found this issue and the details is....
When I open EMS on any CU5 for query something (like get-mailboxdatabasecopystatus) the response return very slow and some query will not return at all (like get-owavirtualdirectory).
But If I using EMS on SP1. Everything is ok then I try to use EMS on SP1 connect to CU5 and try to query something. the result is
some query command cannot return for any result that are server on siteB (just some query command)
Problem
EMS on CU5 return very slow result.
EMS on SP1 still ok.
Does anyone face this problem before for CU5??? Please help me figure this out. Thank you
reply from Social.technetHi,
Have you used the above cmdlets to check your Exchange server health?
"all other command that I ran on EMS didn't logged on event viewer.", my environment is the same with you. I use Exchange 2013, only errors will be displayed in MSExchange Management. Actually, it is not related to slow EMS response.
Hope it helps.
Best regards,
Amy Wang
TechNet Community Support
Maybe you are looking for
-
If I copy the "lcds" folder, Tomcat starts with socket errors
In the documentation it is said that when you create a new server-side application, you can start by copying the 'webapps/lcds' folder. I did that but then, Tomcat starts with some socket errors: [LCDS]SocketServer 'my-rtmp-SocketServer' failed to pr
-
Is this method of Cloning old ?
DB version:10.2.0.4 This is what we do to Clone our large Production DB(4 TB). Because of some practical issues, we don't do it in one day. After the DUPLICATE .... DORECOVER command. We keep the aux db in mount mode and keep applying arch logs gener
-
Use Photoshop Elements 9 as default editor and organizer
I moved to iMac from /windows. I have Adobe Photoshop Elements 9 on my Mac and also iPhoto. Iphoto cam preinstalled on the mac. I want to use PSE exclusively and not iPhoto. I don't want to uninstall iPhoto, just want to have PSE set as the defau
-
Securing Data Services-Webservice
I have the Data Services with Webservices mapping (.ws) defined and policies (auth/encrypt/sign/map) associated with the Service. Once this application is deployed I have created a webservice security (default_wss) with key pairs in key store generat
-
Safari on MacBook Air showing graphics in 16-bit colour
Hi all, On my MacBook Air system, graphics that appear in Safari show up as this (here's a small sample): In particular, look at the mirroring under the image... it's streaky, indicative of 32-bit-to-16-bit colour conversion. Is there a setting on Sa