Slow Query time with Function in Group By

I have a PL/SQL function that computes status based on several inputs. When the function is run in a standard query without a group by, it is very fast. When i try to count or sum other columns in the select (thus requiring the Group By), my query response time explodes exponentially.
My query:
SELECT
ben.atm_class( 'DBT', 'CLA' , 6 , 1245 ),
count (distinct ax.HOUSEHOLD_KEY)
FROM
ADM.PRODUCT p,
ADM.ACCOUNT_CROSS_FUNCTIONAL ax
WHERE
ax.month_key = 1245
AND ( ax.PRODUCT_KEY=ADM.P.PRODUCT_KEY )
AND ( ax.HOUSEHOLD_KEY ) IN (6)
group by
p.ptype, p.stype,
ben.atm_class( 'DBT', 'CLA' , 6 , 1245 )
My explain plan for the query with the Group By:
Operation     Object Name     Rows     Bytes     Cost     Object Node     In/Out     PStart     PStop
SELECT STATEMENT Optimizer Mode=CHOOSE          3           10                     
SORT GROUP BY          3      60      10                     
NESTED LOOPS          3      60      6                     
TABLE ACCESS BY LOCAL INDEX ROWID     ACCOUNT_CROSS_FUNCTIONAL     3      33      3                23     23
INDEX RANGE SCAN     NXIF312ACCOUNT_CROSS_FUNCTION     3           2                23     23
TABLE ACCESS BY INDEX ROWID     PRODUCT     867      7 K     1                     
INDEX UNIQUE SCAN     PK_PRODUCT_PRODUCTKEY     867                               
This executes in over 9 minutes.
My query w/o Group by
SELECT
ben.atm_class( 'DBT', 'CLA' , 6 , 1245 ),
ax.HOUSEHOLD_KEY
FROM
ADM.PRODUCT p,
ADM.ACCOUNT_CROSS_FUNCTIONAL ax
WHERE
ax.month_key = 1245
AND ( ax.PRODUCT_KEY=ADM.P.PRODUCT_KEY )
AND ( ax.HOUSEHOLD_KEY ) IN (6)
My explain plan without the Group By:
Operation     Object Name     Rows     Bytes     Cost     Object Node     In/Out     PStart     PStop
SELECT STATEMENT Optimizer Mode=CHOOSE          3           3                     
NESTED LOOPS          3      42      3                     
TABLE ACCESS BY LOCAL INDEX ROWID     ACCOUNT_CROSS_FUNCTIONAL     3      33      3                23     23
INDEX RANGE SCAN     NXIF312ACCOUNT_CROSS_FUNCTION     3           2                23     23
INDEX UNIQUE SCAN     PK_PRODUCT_PRODUCTKEY     867      2 K                         
This executes in 6 seconds
Any thoughts on why it takes 90 times longer to perform the Group By sort?

The plan didn't paste:
no group by:
Operation     Object Name     Rows     Bytes     Cost     Object Node     In/Out     PStart     PStop
SELECT STATEMENT Optimizer Mode=CHOOSE          3           6                     
NESTED LOOPS          3      60      6                     
TABLE ACCESS BY LOCAL INDEX ROWID     ACCOUNT_CROSS_FUNCTIONAL     3      33      3                23     23
INDEX RANGE SCAN     NXIF312ACCOUNT_CROSS_FUNCTION     3           2                23     23
TABLE ACCESS BY INDEX ROWID     PRODUCT     867      7 K     1                     
INDEX UNIQUE SCAN     PK_PRODUCT_PRODUCTKEY     867                               
group by:
Operation     Object Name     Rows     Bytes     Cost     Object Node     In/Out     PStart     PStop
SELECT STATEMENT Optimizer Mode=CHOOSE          3           10                     
SORT GROUP BY          3      60      10                     
NESTED LOOPS          3      60      6                     
TABLE ACCESS BY LOCAL INDEX ROWID     ACCOUNT_CROSS_FUNCTIONAL     3      33      3                23     23
INDEX RANGE SCAN     NXIF312ACCOUNT_CROSS_FUNCTION     3           2                23     23
TABLE ACCESS BY INDEX ROWID     PRODUCT     867      7 K     1                     
INDEX UNIQUE SCAN     PK_PRODUCT_PRODUCTKEY     867                               

Similar Messages

  • Slow query times with "contains" and "or"

    We're running Oracle 9.2.0.4 on RHEL 3
    I have a simple table - "docinfo". I've create a multicolumn Text index for docinfo called "repoidx". I have five cases below with the fourth one being the most difficult to understand. I have a primary key for "docinfo" but do nott have any additional indexes on "docinfo" right now because we're still testing the design. I'm curious about what is magical about using "or" plus "contains" in the same query (case 4).
    [case 1 - simple like]
    select count(docid)
    from sa.docinfo
    where
    author like '%smith%'
    Elapsed: 00:00:00.02
    Execution Plan
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=1468 Card=1 Bytes=15)
    1 0 SORT (AGGREGATE)
    2 1 TABLE ACCESS (FULL) OF 'DOCINFO' (Cost=1468 Card=12004 Bytes=180060)
    [case 2 - simple contains]
    select count(docid)
    from sa.docinfo
    where contains(repoidx,'facts')>0
    Elapsed: 00:00:01.00
    Execution Plan
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=3905 Card=1 Bytes=12)
    1 0 SORT (AGGREGATE)
    2 1 TABLE ACCESS (BY INDEX ROWID) OF 'DOCINFO' (Cost=3905 Card=21278 Bytes=255336)
    3 2 DOMAIN INDEX OF 'IDX_DOCINFO_REPOIDX' (Cost=3549)
    [case 3 - simple like _and_ simple contains]
    select count(docid)
    from sa.docinfo
    where
    contains(repoidx,'facts')>0
    and
    author like '%smith%'
    Elapsed: 00:00:00.02
    Execution Plan
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=3905 Card=1 Bytes= 23)
    1 0 SORT (AGGREGATE)
    2 1 TABLE ACCESS (BY INDEX ROWID) OF 'DOCINFO' (Cost=3905 Card=1064 Bytes=24472)
    3 2 DOMAIN INDEX OF 'IDX_DOCINFO_REPOIDX' (Cost=3549)
    [case 4 - simple like _or_ simple contains]
    select count(docid)
    from sa.docinfo
    where
    contains(repoidx,'facts')>0
    or
    author like '%smith%'
    Elapsed: 00:01:37.02
    Execution Plan
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=1468 Card=1 Bytes= 23)
    1 0 SORT (AGGREGATE)
    2 1 TABLE ACCESS (FULL) OF 'DOCINFO' (Cost=1468 Card=32218 Bytes=741014)
    [case 5 - simple like union simple contains]
    select count(docid)
    from sa.docinfo
    where
    contains(repoidx,'facts')>0
    union
    select count(docid)
    from sa.docinfo
    where
    author like '%smith%'
    Elapsed: 00:00:00.04
    Execution Plan
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=5581 Card=2 Bytes= 27)
    1 0 SORT (UNIQUE) (Cost=5581 Card=2 Bytes=27)
    2 1 UNION-ALL
    3 2 SORT (AGGREGATE) (Cost=4021 Card=1 Bytes=12)
    4 3 TABLE ACCESS (BY INDEX ROWID) OF 'DOCINFO' (Cost=3905 Card=21278 Bytes=255336)
    5 4 DOMAIN INDEX OF 'IDX_DOCINFO_REPOIDX' (Cost=3549)
    6 2 SORT (AGGREGATE) (Cost=1560 Card=1 Bytes=15)
    7 6 TABLE ACCESS (FULL) OF 'DOCINFO' (Cost=1468 Card=12004 Bytes=180060)

    Case 1:
    There is no index on author and it would not be able to use one if there was, due to the leading %, so it does a full table scan, which is still quick, since that is all there is to the query.
    Case 2:
    It has an index on repoidx, so it uses it and it is quick.
    Case 3:
    It has an index on repoidx, so it uses it. Since "and" is used, both conditions must be met. It has quckly obtained the results that match the first condition using the index, so it only has to check those rows, not every row in the table, to see if they also match the second condition.
    Case 4:
    Either condition may be met. It does not have an index on author, so it cannot use an index for that conditiion. Either condition can be met and it cannot duplicate the rows where both conditions are met, so it cannot use the results of one condition to check the other. So, it has to do a full table scan, in order to check every row for either condition, so it is slow.
    Case 5:
    select count (docid)
    from   docinfo
    where  contains (repoidx, 'facts') > 0
    union
    select count (docid)
    from   docinfo
    where  author like '%smith%';is not the same as:
    select count (docid)
    from   (select docid
            from   docinfo
            where  contains (repoidx, 'facts') > 0
            union
            select docid
            from   docinfo
            where  author like '%smith%');which is the same as case 4 and therefore just as slow. Your case 5 is just taking the union of 2 numbers, which could result in one row or two rows, depending on whether the numbers happen to match or not. Consider the following:
    scott@ORA92> SELECT job, empno
      2  FROM   emp
      3  /
    JOB            EMPNO
    CLERK           7369
    SALESMAN        7499
    SALESMAN        7521
    MANAGER         7566
    SALESMAN        7654
    MANAGER         7698
    MANAGER         7782
    ANALYST         7788
    PRESIDENT       7839
    SALESMAN        7844
    CLERK           7876
    CLERK           7900
    ANALYST         7902
    CLERK           7934
    14 rows selected.
    scott@ORA92> SELECT job, COUNT (empno)
      2  FROM   emp
      3  GROUP  BY job
      4  /
    JOB       COUNT(EMPNO)
    ANALYST              2
    CLERK                4
    MANAGER              3
    PRESIDENT            1
    SALESMAN             4
    scott@ORA92> SELECT COUNT (empno)
      2  FROM   emp
      3  WHERE  job = 'SALESMAN'
      4  /
    COUNT(EMPNO)
               4
    scott@ORA92> SELECT COUNT (empno)
      2  FROM   emp
      3  WHERE  job = 'CLERK'
      4  /
    COUNT(EMPNO)
               4
    scott@ORA92> SELECT COUNT (empno)
      2  FROM   emp
      3  WHERE  job = 'SALESMAN'
      4  UNION
      5  SELECT COUNT (empno)
      6  FROM   emp
      7  WHERE  job = 'CLERK'
      8  /
    COUNT(EMPNO)
               4
    scott@ORA92> -- the above is the same as:
    scott@ORA92> SELECT 4 FROM DUAL
      2  UNION
      3  SELECT 4 FROM DUAL
      4  /
             4
             4
    scott@ORA92> -- it is not the same as:
    scott@ORA92> SELECT COUNT (empno)
      2  FROM   (SELECT empno
      3            FROM   emp
      4            WHERE  job = 'SALESMAN'
      5            UNION
      6            SELECT empno
      7            FROM   emp
      8            WHERE  job = 'CLERK')
      9  /
    COUNT(EMPNO)
               8
    scott@ORA92> -- if the numbers are different, you get 2 rows:
    scott@ORA92> SELECT COUNT (empno)
      2  FROM   emp
      3  WHERE  job = 'ANALYST'
      4  UNION
      5  SELECT COUNT (empno)
      6  FROM   emp
      7  WHERE  job = 'MANAGER'
      8  /
    COUNT(EMPNO)
               2
               3
    scott@ORA92> -- the above is the same as:
    scott@ORA92> SELECT 2 FROM DUAL
      2  UNION
      3  SELECT 3 FROM DUAL
      4  /
             2
             2
             3
    scott@ORA92> -- it is not the same as:
    scott@ORA92> SELECT COUNT (empno)
      2  FROM   (SELECT empno
      3            FROM   emp
      4            WHERE  job = 'ANALYST'
      5            UNION
      6            SELECT empno
      7            FROM   emp
      8            WHERE  job = 'MANAGER')
      9  /
    COUNT(EMPNO)
               5

  • PAINFULLY SLOW launch times with MS Office 2004 Apps?

    Anyone else noticing painfully slow launch times with their MS Office 2004 Apps? It seems that each time I restart my machine and try to open any kind of office document the Word icon will bounce at least 15 times and then it takes forever for the application to actually launch. Once launched it seems fast and works fine, but not on initial launch after restart.
    Is this a Rosetta issue? Should I reinstall the MS Office apps?
    -JB

    Seems ok to me. Did you download the latest update which finally allows spotlight to search in Entourage and provide other improvements?
    http://www.microsoft.com/mac/downloads.aspx?pid=download&location=/mac/download/ office2004/Office2004_11.2.3.xml&secid=4&ssid=29&flgnosysreq=True
    "Microsoft Office 2004 for Mac 11.2.3 Update
    After you install this update, you can use Mac OS X Sync Services and Spotlight searches to sync and find Entourage items, use smart cards with Entourage 2004, and enjoy improved overall security and stability when using Microsoft Word 2004, Excel 2004, PowerPoint 2004, and Entourage 2004. This update also includes all of the improvements released in all previous Office 2004 updates.
    Applies to: Microsoft Office 2004 Standard Edition, Office 2004 Student and Teacher Edition, Office 2004 Professional Edition, Entourage 2004.
    Released: March 14, 2006"

  • Slow loop times with 6024E and LV2009

    Hello all,
    I have searched the forums back and forth, in addtion to the knowledge base, but I am still confused as to the slow loop times I am experiencing.  I have a 6024e PCMCIA DAQ card with a very simple VI created in LV 2009.  I am using the DAQ Assistant to collect 1 thermocouple channel on a SCXI Chassis 32 channel thermocouple module.
    The problem is that the loop times in labview is about 3 seconds.  The DAQ Assistant acquisition mode is set to "on demand".  The target sample rate is about 1 to 2 samples per second.  I have read in previous posts that the repeated creation of the task using the DAQ Assistant with the acquisition mode set to "on-demand" can slow things down.
    What really has me confused is that using this exact same method of setting the DAQ Assistant acquisition mode to "on-demand" has worked fine on the same hardware when using one of the earlier v8 versions of LabView.  I don't understand what has changed and why the loop times are so much slower.  I planned to pull the newest LV2009 off the computer and put a previous v8 version on just to confirm my observations.  In addition, I pulled up a copy of the VI that was written in one of the v8.x versions and it used the DAQ Assitants with the acquisition mode set to "on-demand" and had a loop time of 0.100 seconds.
    Any help would be appreciated.  I have been working on this all day today with no sucess.
    Thanks in advance,
    Steve

    H_baker,
    I did have the patch applied at the time I was experiencing the problems.  The DAQmx driver version was the version that was supplied on the DVD that we received for LV2009.  I believe the actual version number was something like 8.9.5.
    The loop time was determined as follows:
    A simple vi I was written in a while loop.  The data acquisition was conducted using the DAQ assistant sampling 1 channel on the SCXI thermocouple module in a SCXI 1000 chassis.  Inside the loop of the vi the getdatetime function was placed and wired to an indicator on the screen.  The vi was then ran.  Observation showed that the loop time was typically 3 seconds and sometimes 6 seconds by keeping track of the datetime indicator on the front panel.
    The problem appears to be resolved now.  I had pulled off the LV2009 installation and put back on the 8.6 installation.  Recreated the vi and everything worked fine. As a sanity check I went ahead and reinstalled LV2009.  Recreated the vi again and everything works fine now.  The only real difference between the two installations is that I am using the latest NIDAQmx drives (I believe version 9.0.5).  It could have been just some sort of transient issue that resolved itself either by reinstallation or by rebooting.   Not sure.  I was just initially very concerned given that another posting had mentioned loop times of 3 seconds just like I was experiencing.
    Thanks,
    Steve

  • CVP 7.0(2) SIP RNA Timer with CUCM Hunt Group

    I have a very simple ICM 7.5(9) script which simply assigns a call type then forwards to a label on CUCM 7.1(5), which is a hunt pilot containing a hunt list with 2 line groups...a circular LG with 10 members (RNA reversion timeout of 20 sec), followed by a broadcast LG with different 10 members. There is no CFNA/CFB forwarding set up on the hunt pilot.
    In CVP, the SIP RNA timer is set on for this DN at 120 seconds, and I can see that get set in CVP logs (IP addresses and dialed numbers modified to protect customer data):
    41762417: 10.100.1.41: Dec 03 2012 20:23:28.977 -0500: %CVP_7_0_SIP-7-CALL: {Thrd=Pool:SIP[7059609]} Matched 666333315555551111 to proxy.customer.uc
    41762418: 10.100.1.41: Dec 03 2012 20:23:28.977 -0500: %CVP_7_0_SIP-7-CALL: {Thrd=Pool:SIP[7059609]} Using Local Static Route for sip:[email protected]
    41762419: 10.100.1.41: Dec 03 2012 20:23:28.977 -0500: %CVP_7_0_SIP-7-CALL: {Thrd=Pool:SIP[7059609]} Matched 666333315555551111 to TimeoutMatcher: patterns like 66633331> will use RONA of 120
    41762420: 10.100.1.41: Dec 03 2012 20:23:28.977 -0500: %CVP_7_0_SIP-7-CALL: {Thrd=Pool:SIP[7059609]} CALLGUID = 0B19E39A3CE811E28B7DA21700DE4950 LEGID = 0B19E39A3CE811E28B7DA21700DE4950-135458420897716680 - [OUTBOUND]: INVITE TO <sip:[email protected];transport=udp> FROM "--CVP" <sip:[email protected]:5060> EXPIRES[120] 100REL[Unsupported]
    The hunt group then begins hunting, and can be answered normally. However, a CANCEL is sent at 60 seconds, and I am not sure why:
    From the gateway:
    2106715: Dec  3 20:24:29.095: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
    Sent:
    CANCEL sip:[email protected]:5060 SIP/2.0
    Via: SIP/2.0/UDP 10.100.1.5:5060;branch=z9hG4bK2C171513C0
    From: "--CVP" <sip:[email protected]>;tag=20687DD0-DAF
    To: <sip:[email protected]>
    Date: Tue, 04 Dec 2012 01:23:29 GMT
    Call-ID:
    [email protected]
    CSeq: 101 CANCEL
    Max-Forwards: 70
    Timestamp: 1354584269
    Reason: Q.850;cause=19
    Content-Length: 0
    From CUCM SDI traces:
    12/03/2012 20:24:29.169 CCM|//SIP/SIPTcp/wait_SdlReadRsp: Incoming SIP TCP message from 10.100.3.30 on port 43568 index 566129 with 389 bytes:
    CANCEL sip:[email protected]:5060;transport=tcp SIP/2.0
    Via: SIP/2.0/TCP 10.100.3.30:5060;branch=z9hG4bK51cac6f4-76fb29a5-78d5dd99-9a021233-1
    Call-ID: [email protected]
    From: "--CVP" <sip:[email protected]:5060>;tag=ds229f1b0f
    To: <sip:[email protected];transport=udp>
    CSeq: 1 CANCEL
    Content-Length: 0
    I am trying to determine which timer is limiting the hunt to 60 seconds.
    Can anyone suggest where I might begin looking?
    Thanks so much!!!

    I've run into a similar problem recently with a CVP 8.5(1) SIP deployment and have found in the CVP documentation that the RNA Timeout is a range configurable between 5 and 60 seconds.
    You can enter a larger value through OAMP on the Call Server-->SIP-->Advanced Configuration tab but when you Save and Deploy, it reverts back to the max of 60 seconds. The CVP help file indicates the 5-60 second range.
    Regards,
    Matt

  • Random, excruciatingly slow load time with 7900 Elite small form factor desktops

    Hi all, I have approx 300 HP 7900 Elite small form factor machines in my environment that were deployed just over two years ago. from the time of deployment we have experienced on about 50 occasions a random, excruciatingly slow load time that take about one hour for the user to login and open their programs. there has been no rhyme or reason for it, different floors, areas of the building, etc. I searched the forum for similar probs and didn't see one like this, I hope I'm not duplicating efforts from someone else's question... One thing we have noticed is that if we re-boot while it is going through the start-up process, it seems to "make it angry" and will lengthen the overall load time. We use the 32-bit Vista Enterprise OS. This is with a "stock" build, that is to say, our standard corporate build. our security policy does not allow users to install software, by the way. Thanks so much if you can help!

    Hi,
    How is the issue going? Usually, this error can be caused by missing third-party NIC driver. To solve the issue, we can download the missing network
    driver and update the WDS boot image to include it.
    In addition to the article provided by Chris, the following blog can also be referred to as reference.
    http://askmetricks.blogspot.in/2013/03/solvedwdsclient-error-occurred-while.html
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this
    information.
    Best regards,
    Frank Shen

  • Slow render times with latest update

    Since updating to Premiere CC 7.1 I am experiencing extremly slow render speed with Magic Bullet Looks and .Filmconvert pro 2. When hitting enter to render it hangs for aout 10 seconds before starting. Then after each shot has been rendered it hangs again before continuing, What used to take around 20 minutes now takes 2 hours 34 minutes.
    Adobe, please can you show me how to roll back to version 7.0.1 as i don't have time to mess about with this.
    OS: Windows 7
    GTX 570 with latest driver (331.65)

    Hi captain,
    Check out the plug-ins manufacturer's web page and see if there are any updates for your plug-ins.
    Thanks,
    Kevin

  • Help - Getting slower render times with AE CS6

    Hi everyone
    Wonder if anyone else is getting as described?
    I have a 3m37s project which is predomnantly motion graphics using live shot footage (.MXF files), Illustrator and a few JPGs.
    In CS5 AE I get render times which average around 45mins, so I thought I'd see how quickly CS6 could crank it out by - as you can see I'm getting times which are in excess of 2 almost 3hours!
    The project contains a few 2.5D moves as well as tiny bit of Trapcode 3D Stroke
    I have mentioned on this forum that I'm having the Error 5070 problems with start up and Ray Trace is unavailable but these times seem seriously wrong to me.
    Mac Pro 3,1 (2x 2.8GHZ)
    20GB RAM
    OS 10.7.4
    NVIDIA GeForce GT8800
    NVIDIA Quadro 4000 both on GPU Driver 207.00.00.f06
    CUDA Driver 4.2.10
    All files are on a 2TB drive (7200rpm)
    Rendering to a 1TB drive (7200rpm)
    Corsair SSD 60gb Cache drive
    As an observation when I watch the frames counter ticking over, CS5 seems to steadily work it's way through the render at around less than a frame a second, CS6 seems to crank out 2-6 frames then hold for 30secs before working on another batch. It crawls to a halt near the end.
    Can anyone offer any help or advice?
    So far I'm not having a great time with my CS6 transition
    Thanks
    Rob
    Message was edited by: Bokeh Creative Ltd
    because of a Typo

    Thanks Rick - Yes what confused me was that it only took 45mins in CS5 even with MP 'on'
    Still having no joy with Ray Tracing though, even though I have a Quadro 4000 card, I get the 5070 error on start up. Any ideas?

  • Slow Query only with some values??????

    I have this tables:
    Vehicles: id_vehicle, id_customer, registration_number, model, ... (2.000.000 of records) (1.500.000 distinct id_customer)
    Insurance-Customers-Vehicles: id_insurance, id_customer, id_vehicle ... (4.500.000 of records)
    Insurance: id_insurance, date_insurance, ...
    Customers: id_customer, name, surname, ..
    QUERY:
    select
    vh.id_vehicle,
    vh.id_customer,
    vd.model,
    vd.registration_number
    from Insurance-Customers-Vehicles vh
    left join Vehicles v on (vh.id_vehicle = v.id_vehicle and vh.id_customer = v.id_customer)
    inner join Vehicles vd on (vh.cod_vehiculo = vd.cod_vehiculo)
    where vh.id_customer = 123456
    and vh.id_vehicle is null
    I execute this query because I want to obtain Vehicles that have been associated with a customer but I don’t want to obtain the vehicle-customer on Insurance-Customers-Vehicles table if it’s now associated to the vehicle-customer on vehicles table.
    This query is very fast at 99% of the time (less than 1 second), but when a client has many vehicles associated (more than 50) on Insurance-Customers-Vehicles table the query is very slow and takes between 10 and 20 seconds ...
    Insurance-Customers-Vehicles
    Please, How can I improve it?????
    Thanks in advance!!!!!
    Operation     Object Name                              Rows     Bytes     Cost     Object Node     In/Out     PStart     PStop
    SELECT STATEMENT Optimizer Mode=CHOOSE                         3             12                                          
      NESTED LOOPS                                        3       498       12                                          
        FILTER                                                                
          NESTED LOOPS OUTER                                                                
            TABLE ACCESS BY INDEX ROWID     Insurance-Customers-Vehicles     3       408       6                                          
              INDEX RANGE SCAN     IND_INSCUVEH_ID_CUSTOMER          3             3                                          
            TABLE ACCESS BY INDEX ROWID     VEHICLES               1       13       2                                          
              INDEX UNIQUE SCAN     PK_VEHICLES                    1             1                                          
        TABLE ACCESS BY INDEX ROWID     VEHICLES                    1       17                                                
          INDEX UNIQUE SCAN     PK_VEHICLES                         1             1                  

    I think there is something logically wrong with this query.
    You left join the vehicle table, however you already know that id_vehicle is NULL.
    I'm not sure what it should achieve, maybe you should replace this join with an EXISTS sub select, maybe you can remove this join completely.
    Try to find an example where your query gives a different result than this one. And explain me why the result is different.
    select vh.id_vehicle,
          vh.id_customer,
          vd.model,
          vd.registration_number
    from Insurance-Customers-Vehicles vh
    inner join Vehicles vd on (vh.cod_vehiculo = vd.cod_vehiculo)
    where vh.id_customer = 123456
    and vh.id_vehicle is null;Message was edited by:
    Sven W.

  • Slow render times with large jpegs - complete system lag

    In a project i'm working on I have two large jpegs with a small zoom scaling effect. Going from 100 to 103 percent.
    I've noticed that both Adobe Media Encoder and Premiere Pro experience a heavy slow down in render time as soon as the jpegs have to be rendered.
    Not only does the render speed almost come to a halt, the complete system lags very heavy, even the mouse cursor won't respond well.
    This happens when i have GPU acceleration enabled and when i do a 2 pass H264 encoding.
    When I have the GPU acceleration disabled the render goes very smooth, and doesn't seem to slow down...
    The jpeg is 4023  x 2677, and 6,97 MB large.
    Scaling the jpeg down to about 1920x1080 in Photoshop and put that one in the timeline made the render go a lot faster.
    I understand that a large picture takes a bit more time to be rendered, but we're talking about a 10minute render whit the large jpeg file and  a 2 minute render with the jpeg resized.
    The total time of the two jpegs in the video is 5 seconds in a 3 minutes video.
    So, that made me think that the render times are exponentially long.
    In the timeline everything runs really smooth.
    Is this considered normal, I can't remember having such big differences in CS5. It's not a major thing, but I wanted to share anyway.
    My system:
    Premiere Pro CC (latest)
    i7 4930K
    32 GB RAM
    2xGTX480
    Footage and project on a Raid0 disk
    Previews/Cache on a Raid0 disk
    System and Premiere on SSD
    Render to a single 7200 rpm drive.

    >wanted to share
    Yes... known issue... I think some of the below is about P-Elements, but the same ideas
    Photo Scaling for Video http://forums.adobe.com/thread/450798
    -HiRes Pictures to DVD http://forums.adobe.com/thread/1187937?tstart=0
    -PPro Crash http://forums.adobe.com/thread/879967

  • Slow calc time with SET CREATEBLOCKONEQ OFF for block creation

    Hello everyone,
    I have a problem with the slow execution of one of my calc scripts:
    A simplified version of my calc script to calculate 6 accounts looks like this:
    SET UPDATECALC OFF;
    SET FRMLBOTTOMUP ON;
    SET CREATEBLOCKONEQ ON;
    SET CREATENONMISSINGBLK ON;
    FIX (
    FY12,
    "Forecast",
    "Final",
    @LEVMBRS("Cost Centre",0),
    @LEVMBRS("Products",0),
    @LEVMBRS("Entities",0)
    SET CREATEBLOCKONEQ OFF;
    "10000";"20000";"30000";"40000";"50000";"60000";
    SET CREATEBLOCKONEQ ON;
    ENDFIX
    The member formula for each of the accounts is realtively complex. One of the changes recently implemented for the FIX was openin up the cost center dimension. Since then the calculation runs much slower (>1h). If I change the setting to SET CREATEBLOCKONEQ ON, the calculation is very fast (1 min). However, no blocks are created. I am looking for a way to create the required blocks, calculate the member formulas but to decrease calc time. Does anybody have any idea what to improve?
    Thanks for your input
    p.s. DataStorage in the member properties for the above accounts is Never Share

    MattRollings wrote:
    If the formula is too complex it tends not to aggregate properly, especially when using ratios in calculations. Using stored members with member formulas I have found is much faster, efficient, and less prone to agg issues - especially in Workforce type apps.We were experiencing that exact problem, hence stored members^^^So why not break it up into steps? Step 1, force the calculation of the lower level member formulas, whatever they are. Make sure that that works. Then take the upper level members (whatever they are) and make them dynamic. There's nothing that says that you must make them all stored. I try, wherever possible, to make as much dynamic as possible. As I wrote, sometimes I can't for calc order reasons, but as soon as I get past that I let the "free" dense dynamic calcs happen wherever I can. Yes, the number of blocks touched is the same (maybe), but it is still worth a shot.
    Also, you mentioned in your original post that the introduction of the FIX slowed things down. That seems counter-intuitive from a block count perspective. Does your FIX really select all level zero members in all dimensions?
    Last thought on this somewhat overactive thread (you are getting a lot of advice, who knows, maybe some of it is good ;) ) -- have you tried flipping the member calcs on their heads, i.e., take what is an Accounts calc and make it a Forecast calc with cross-dims to match? You would have different, but maybe more managable block creation issues at that point.
    Regards,
    Cameron Lackpour

  • Slow response time with terminal emulator

    We are using Oracle Financials pkg. 10.7 Character mode using Oracle DB 7.3.3 on a IBM (sequent) S5000 running at DYNIX/ptx 4.2.3 (soon to be 4.2.4). On the end user side, the accounting dept. is connecting to the server using EXTRA Personal Client. During the course of the day, the response time of the emulator slows down. I can count to 25 sometimes b/4 the emulator responds (catches up with the key strokes). Some days it does not happen until the end of the work day and other times it can happen after just a few hours. After checking the network, application and server, we can find nothing wrong. If we have the user reboot their p.c., this seems to clear up the problem. Has anyone else seen or heard of this problem??? If so, does anyone know how to correct it??? We have installed and tried a different emulator that seems to be doing the samething, but only not as bad (slow).
    Thanks,
    Tony Dopkins
    UNIX System Administrator
    Andersen Windows

    Never heard of this problem or this emulator product.
    Oracle did/does have their own emulator that sort of similuates a GUI environment.
    It is called OADM (Oracle Display Manager).
    If you call support, they may be able to send it to you. However, it's no longer supported, and is a little buggy. But it has no performance problems.
    If it straight character feel the users need, Kea TERM works 4 me.
    Or, possibly call the your emulators support line.. it could be a known issue with their product..
    Most likely it has nothing to do with Oracle products.

  • SAP HANA Live slow query times

    Hi, we have implemented HANA Live, which the SAP's Best Practice and standard Business Content on a lot of Lines of Business: FI, CO, SD, MM...etc...
    but when we run reports , the average response time is between 12 and 16 seconds. We used all possible SAP tools. Lumira, BO Crystal Reports, Webi, SAP Design Studio, OLAP Analysis ad BO Explorer, but the response times are everywhere quite slow.
    The HANA Live Calculation Views supposed to be already optimized for execution, but when we run them directly on SAP Studio, it gives us 12 seconds on the first run. On the consecutive runs the times improves drastically. I'm thinking that maybe we missing some Server config? It supposed to be already in-memory, so why is it so slow?
    Thanks for your ideas.

    Hi, thanks for the replies guys.
    the view I'm trying is SalesOrderValueTrackingQuery
    the report name is "Sales Amount Analysis", which is SAP Design Studio based dashboard
    These are the tables used:
    SAP_ECC.ADRC
    SAP_ECC.MAKT
    SAP_ECC.PA0001
    SAP_ECC.KNA1
    SAP_ECC.T001
    SAP_ECC.T006
    SAP_ECC.TSPA
    SAP_ECC.TSPAT
    SAP_ECC.TVAK
    SAP_ECC.TVAKT
    SAP_ECC.TVKO
    SAP_ECC.TVKOT
    SAP_ECC.TVTW
    SAP_ECC.TVTWT
    SAP_ECC.TSAD3T
    SAP_ECC.VBAK
    SAP_ECC.VBAP
    SAP_ECC.VBEP
    SAP_ECC.VBFA
    SAP_ECC.VBKD
    SAP_ECC.VBPA
    SAP_ECC.VBUK
    SAP_ECC.VBUP
    SAP_ECC.VEDA
    That's what I got after running it in SQL
    Statement 'SELECT * FROM "_SYS_BIC"."sap.hba.ecc/SalesOrderValueTrackingQuery"'
    successfully executed in 12.936 seconds (server processing time: 12.444 seconds)
    Fetched 1000 row(s) in 1.969 seconds (server processing time: 11 ms 886 µs)
    Result limited to 1000 row(s) due to value configured in the Preferences
    As you I ran it again and again it takes almost 13 seconds. So either it get's unloaded every time I get disconnected or something different is the issue here.
    also, there are 8120 records in the main underlying table VBAK.
    the memory usage is also very low
    I think we might be missing some basic setting here
    Thanks,
    Sergio

  • Slow bootup time with new installed SSD

    Hi
    Installed a Samsung SSD 830 256GB into my MBP 15" after duplicating the hard drive via disk utility. But bootup times has nearly doubled from 35 seconds of the old HDD to 63 seconds with the new SSD when it's supposed to be the other way round! Applications do startup and run very fast though. Tried repairing my permissions but that hasnt helped. Any help or suggestions? Thanks!

    richee wrote:
    Hi
    Installed a Samsung SSD 830 256GB into my MBP 15" after duplicating the hard drive via disk utility. But bootup times has nearly doubled from 35 seconds of the old HDD to 63 seconds with the new SSD when it's supposed to be the other way round! Applications do startup and run very fast though. Tried repairing my permissions but that hasnt helped. Any help or suggestions? Thanks!
    Go to System Preferences>Startup Disk and select the SSD.

  • Slow download time with XP

    I have a desk top and a laptop. Desktop has XP, laptop has Win7. Download speed tests are as follows: Desktop in Firefox 7-8mbps, in Explorer 18. Downloads on laptop, no difference with either program 16- 18. I have latest versions on both computers. Why does the desktop using Firefox show half the download speed?
    Thanks

    What with Mountain Lion, iOS 6 and the new software Updates being out recently, the Apple Servers seem to be running slow probably due to huge download demand for the above.  I've noticed it too.
    Hope this helps

Maybe you are looking for