Is Splitter degrades performance?

Hi,
I am using Oracle Warehouse Builder 10G R1.
Even the origin of the question is from OWB, its mainly regarding database performace.
Here my scenario is as follows.
There is a mapping , internally OWB creates a package.
First Way
In that mapping there are two sources A and B .
I used a Join operator and used Full outer join. From there I am doing lookup into tables and finally data is inserted int Table C.
In the package it is creating a cursor for Join operator.
I mean,
Cursor JOin_A_B
as selct * from Table_A, Table_B where A.column_A (+) = B.Column_B
... so on.
Second Way
I used a Join operator and used Full outer join. Instead of direclyt doing lookup into tables as in the first way, I used a splitter operator where it divides the data from Join to two groups.
The groups are as follows
1st group --> the records which satisfy the condition as Column_B is null
2nd group --> the records which satisfy the condition as Column_A is null
3rd group --> the remaining records (which are matched in both A and B)
So for this owb is generating the code in such a way that, it is creating one cursor for each group.
Son in the "First Way" it is only defining one cursor .
And in the "Second Way" it is creating 3 cursors.
Here each source is in GBs. Almost more that 2 Crore records are there in each source.
I am not much aware of database perfomance issues.
Could any one please explain which is the best way considering performance issues.
One more thing I would like to add here, in the first case (First Way), even it is not required I have to do lookup into tables and get the keys.
But in the "Second Way" according to the group wise data, I use lookup tables.
Thank you,
Regards,
Gowtham Sen.

Hi Gowtham,
Let me clearly understand the design of the maps.
First way
From the outgrp of joiner, you are picking up A.Col_A and B.Col_B, and doing a lookup in a tbl (say LKP_TBL). Here 3 cases could be possible --
a. A.Col_A is null -->> In this case lookup will return no rec (coz operators like = doesn't work with variables having null value)
b. B.Col_B is null -->> In this case lookup will return no rec (same reason as above)
c. both A.Col_A & B.Col_B is not null --->> in this case the lookup will retrun some value
I assume that you have defined the lookup such a way that it will return 'no row' on no match. So effectively the target table would be updated by records returned in case c ONLY.
Second Way
The outgroup of the joiner goes to the Splitter. Now here is my doubt. Whenever you are pulling records from outgrp1 or ourtgrp2 to use in the lookup, they will never return any row (since eith A.Col_A or B.Col_B would be null.). Only records returned from the 'Remaining Row' grouped when used in the lookup, would return values from the lookup, right?
Then probably, you are having 3 instances of the same target table. They are being updated from each of the 3 outgroups of the splitter with some target load order defined. But you see, in this case, really you dont need to use a Splitter, since there will never be a record-set after the lookup corresponding to outgrp1 & outgrp2.
I know I haven't answered your specific question about the database performance related to 3 cursors or 1 cursor!! But before I started creating such a scenario to test the execution path and overall performance, the design of the 'Second Way' seemed not appropiate to me.
Could you please confirm whether I am in right track in visualising both the designs?
Cheers,
Swagata

Similar Messages

  • Usage of DBMS_OUTPUT.PUT_LINE degrade performance?

    Does multiple usage of DBMS_OUTPUT.PUT_LINE in a procdure degrade performance OR crash the procedure?

    [url http://forums.oracle.com/forums/thread.jspa?threadID=490999&tstart=0]duplicate thread

  • Multi select prompt degrade performance ?

    Hi all,
    I want to know is multiselect prompt degrade performance in OBIEE 10G ?

    If I select 1user in prompt then report will run for 1 user...
    if 2 (multi users) then will run report for multi users and do the calculation etc...
    am i right..?
    then it should degrade the performance..

  • Degraded performance.

    Has anyone noticed degraded performance when enabling 802.11n with support for G? The reason for asking is all my wireless workstations are running 802.11n with the exception of my iPhone. I also want to get a wireless all-in-one printer/scanner which I can only find support for B/G wireless networks, not 802.11n. Can anyone recommend an all-in-one printer/scanner that supports 802.11n for use with Apple's AEBS router?

    Has anyone noticed degraded performance when enabling 802.11n with support for G? The reason for asking is all my wireless workstations are running 802.11n with the exception of my iPhone.
    That would be "normal" as the best you can expect in a mixed radio mode is 100 - 130 Mbps for your "n" devices. If you want to take advantage of "n" speed, you would either need to set up a "Dual-Band" network or remove any non-"n" devices from your current network.

  • Export backup degrades performance?

    Hi all,
    Please suggest me if i take export backup of the database does it degrades performance of the database when the applications are connected?
    Can this export be done while application is using the database?
    Is there any risk concerning performance of the application during DB export?
    Thank you.

    An export is a query against the database. Generally, a query to extract the whole schema or whole table (or whole database). It has the same performance impact as any query doing FullTableScans against the tables being exported.
    Note :If you do an export using 'exp', ensure that you use "CONSISTENT=Y" or "FLASHBACK_SCN" or "FLASBACK_TIME" to get consistency across tables, else exp does Table-level consistency.
    With 'expdp' you can use FLASHBACK_SCN or FLASHBACK_TIME

  • Will more number of waiting threads in thread pool degrade performance?

    Hi,
    I use thread pool and set the maximum number of threads to execute. My problem is, the thread pool initiates the number of threads and these threads wait until they get a work. Will this degrade the performance (The threads do I/O operations) ??

    Threads waiting for work will not degrade performance. If your work involves those threads waiting for I/O then that in itself will not degrade performance either (as long as they block and don't poll of course).
    All live threads consume resources however so if you are short on threads or memory then don't create too many of them.
    Pre-starting a large number of threads in a pool can cause a startup delay of course. Generally you should let the pool create threads as needed until it gets to the core pool size.

  • JRC degraded performance, large reports using exportPDF of JRC sample code

    All,
    I am using JRC, Weblogic, and Oracle in order to dynamically create reports using Crystal.  The problem I am seeing is that for very large reports (e.g. 600K +), the performance degrades substantially. 
    There are not a lot of subreports, and I've narrowed it down that the queries are not taking significant amount of time to execute.  I'm using the JRC Helper Sample code, exportPDF call in order to create these reports.
    For small reports (e.g. < 40k) we are looking at a few seconds.  When we start executing the larger reports we are seeing them in 6-20+ minute range.
    Weblogic version is 8, jdk 1.4.
    Any suggestions?  We are not using stored procs, just straight JNDI/JDBC calls.
    Thank you for your time,
    Scott

    Hi Scott,
    I recommend to put this question in our [Java dev f|Java SDK Application Development;orum
    Best regards
    Falk

  • Degrading performance when running consecutive insert operations

    Hi,
    I'm using DB-XML (2.5.16) as a backend storage for a web application that works on top of a TBX (TermBase eXchange) document. The application is using the Python bindings and development is being done on GNU/Linux with Python 2.6.
    The document is stored in a node-storage container, autoindexing is off at the time of container creation and transactions are enabled.
    After a set of indexes are set, queries work quite fast.
    On the other hand, when users input new data (terms) or perform edits on existing data, insert and replace operations have instant effect.
    The application has also a feature to insert lots of new terms in a single click, resulting in a new insert operation for each term. If the amount of terms to be inserted is relatively small (let's say ~10), the operation is quickly performed and the user receives a response almost instantly.
    Anyway, the problem arises when there are lots of new terms to be inserted. It starts working fast but performance quickly starts to degrade badly, needing more long seconds for each insert operation. Python's CPU-usage seems to go up to 100% when doing the actual insert, too.
    I understand this is not the best-working scenario for DB-XML (a single large document), but I don't think this performance is normal or acceptable.
    I have tried increasing Berkeley DB's cache size to 64MB with no success.
    Any hints about what should I be looking at? any more recommendations?
    These are the defined indexes:
    dbxml> listindexes
    Index: node-element-equality-string for node {}:admin
    Index: node-element-equality-string for node {}:descrip
    Index: node-attribute-equality-string edge-attribute-equality-string for node {}:id
    Index: node-attribute-equality-string for node {http://www.w3.org/1999/xhtml}:lang
    Index: unique-node-metadata-equality-string for node {http://www.sleepycat.com/2002/dbxml}:name
    Index: node-element-equality-string for node {}:ref
    Index: node-element-equality-string node-element-substring-string for node {}:term
    Index: node-element-equality-string for node {}:termNote
    Index: node-attribute-equality-string edge-attribute-equality-string for node {}:type
    9 indexes found.Container information:
    dbxml> info
    Version: Oracle: Berkeley DB XML 2.5.16: (December 22, 2009)
             Berkeley DB 4.8.30: (2010-12-09)
    Default container name: cont.dbxml
    Type of default container: NodeContainer
    Index Nodes: on
    Auto-indexing: off
    Shell and XmlManager state:
         Transactional, no active transaction
         Verbose: on
         Query context state: LiveValues,Eager

    As you both have mentioned I have tried increasing the cache size to 512MB or even to 1GB (I have recreated the entire DBs after setting cache sizes), but I don't see any significative improvements.
    I have also tried to tune my insert queries, and now I think they're in better shape than before. I would say the initial inserts feel slightly faster, but this only happens when the DB is empty (just bootstrapped). Then, once the DB has some term entries and grows in size, it starts to degrade and inserting becomes expensive in order of magnitudes.
    Each insert operation is performed in a separate transaction. And yes, I'm using transactions all over the application.
    Vyacheslav, I'll send you a couple of containers along with insert queries created by the application so you can play with.

  • Essbase  Using Swap Memory - Degraded Performance

    Currently on Essbase 6.5.4.2 and Sun Solaris 5.8I find that when the server is running very low on Physical RAM and needs to use Swap during any Essbase Calculation that calc time performance is severly degraded. Is this a functionality of Essbase or a setting in UNIX that can be altered?I'm not a UNIX admin and I need to know how to approach my IT group with this.Thanks!

    Yes, that's to be expected. performance always degrades once swap file is used due to the i/o bottleneck of swapping ram to disk and back. The easiest solution is to prevent your applications running out of ram memory. I've noticed that applications grow in memory through use to some huge sizes, so I unload them from memory at least three times a day so that they load back nice and compact. I've set up a script to do this automatically at the beginning of the day, at midday and at the end. You can also manage memory manually, eg. if you need to run a major calculation, then unload all other applications, then unload that application and reload it before the calc.You can also try to use direct i/o. there is a Unix setting that you can switch to direct i/o, but it caused us problems and corrupted the databases, so use the Essbase database settings. On Solaris you need the root user to run the script 'root.sh', then it will become available. In database/settings, under storage, change the access to direct i/o and tick cache memory locking. You als have to assign a data file cache and reduce your data cache as it doesn't need to be so big about 10% of the data file cache. This will ensure that that database will allways have priority for ram and not use the swap file. The manual recommends that you use buffered i/o instead of direct i/o, but I think it is a matter of judgement. If you need it, then use it. We've been using it without problems. Make sure that your applications using direct i/o don't assign more memory than is available, otherwise it will go back to swap file. The log file will tell you if is is using direct i/o when an application loads.

  • Slowly degrading performance on my PowerMac

    Hi,
    I have an error that's hard to fix. Performance on my PowerMac slowly degrades. It takes a few hours, and then files take longer to find, Quicktime begins to stutter & miss frames, etc. It gets pretty bad after several hours, and maybe a Quicktime video will stall on a frame... so I reboot. The problem goes away with a reboot. This problem started happening a few weeks ago, and I don't know why. Maybe I installed something that's causing a problem?
    At first I thought it might be MacFUSE? Or Perian incorrectly installed? But it's clearly more complex than this.
    Is there a tool I can download to record memory usage over time, to see if there's a memory leak?
    Thanks!
    Mo

    HI,
    Try MemTest
    By your profile I see you have storage but how about the Mac hard disk itself? Right or control click the MacintoshHD icon on your Desktop, then click: Get Info. In the Get Info window, click the discovery triangle so it's facing down. You will see; Capacity and Available Make sure you have 10% available disk space, 15% is better. Insufficient available space, can cause performance issues, system corruption, and possible loss of data.
    Try maintenance. Mac OS X: How to force background maintenance tasks (logs and temporary items)
    Carolyn

  • Triggers Degrade Performance?

    Hello I have written an AFTER INSERT or UPDATE ROW trigger.
    Approximately 200 lines. Opens 3 cursors to get additional data
    (1 at a time). And then uses EXECUTE IMMEDIATE and LOOP to
    insert a row into three tables.
    This does not sound complicated to me, but I am wondering if
    triggers by nature slow performance down? What things can I do
    to make sure performance is not degraded?
    Alex-

    The main reason is because I have a index-by table that stores
    different table names that need to inserted into. Here is the
    code:
    --Trigger       :   ITEMMAST_AFT_INS_UPD_ROW                    -
    --Written       :   Aleksei Wolff, USInternetworking            -
    --Date          :   10/02/2001                                  -
    --Description   :   Create records in MAX_ITM_INTERFACE when    -
    --Description   :   Records are changed or added in ITEMMASTR   -
    CREATE OR REPLACE TRIGGER LAWMAX80.ITEMMAST_AFT_INS_UPD_ROW
    AFTER INSERT OR UPDATE OF
    ITEM,
    DESCRIPTION,
    DESCRIPTION2,
    STOCK_UOM,
    GENERIC,
    HAZARD_CODE,
    LOT_TRACK_FL,
    USER_FIELD1
    ON LAWMAX80.ITEMMAST
    REFERENCING
    NEW AS NEW
    OLD AS OLD
    FOR EACH ROW
    DECLARE
    DEFINE STATIC VALUES
    V_ITEM_GROUP constant VARCHAR2
    (5) := 'MWRA ';
    V_MAX_CHANGEBY constant VARCHAR2
    (6) := 'LAWSON';
    V_LWS_ICOTYPE constant VARCHAR2(1) := 'D';
    V_LWS_TBLNAME constant CHAR
    (30) := 'ITCOMMENT ';
    V_LWS_LOCATION constant VARCHAR2(4) := '950';
    DEFINE INSERT VARIABLES
    V_MAX_ITEMNUM VARCHAR2(32);
    V_MAX_DESCRIPTION VARCHAR2(130);
    V_MAX_LOTTYPE VARCHAR2(5);
    V_MAX_HAZARDID VARCHAR2(8);
    V_MAX_ORDERUNIT VARCHAR2(8);
    V_MAX_ISSUEUNIT VARCHAR2(8);
    V_MAX_MODELNUM VARCHAR2(15);
    V_MAX_CATALOGCODE VARCHAR2(15);
    V_MAX_CHANGEDATE DATE;
    V_LWS_DESC1 VARCHAR2(30);
    V_LWS_DESC2 VARCHAR2(30);
    V_LWS_ITCOMMENT VARCHAR2(65);
    V_LWS_ICOINDEX CHAR(4);
    V_OBJSTART NUMBER;
    V_DUMMY VARCHAR2(10);
    ERROR_CODE NUMERIC;
    ERROR_MSG VARCHAR2(250);
    DEFINE CURSORS
    CURSOR itcomment_cursor is
    select * from LAWMAX80.ITCOMMENT ICO
    Where ICO.ITEM_GROUP = V_ITEM_GROUP
    AND ICO.ITEM = V_MAX_ITEMNUM
    AND ICO.COM_TYPE = V_LWS_ICOTYPE
    ORDER BY ICO.SEQ;
    ico_data itcomment_cursor%ROWTYPE;
    CURSOR hico_cursor is
    select * from LAWMAX80.L_HICO HIC
    Where HIC.FILENAME = V_LWS_TBLNAME
    AND HIC.L_INDEX = V_LWS_ICOINDEX;
    hic_data hico_cursor%ROWTYPE;
    CURSOR date_cursor is
    select sysdate from dual;
    date_data date_cursor%ROWTYPE;
    --DEFINE INDEX-BY TABLE and ASSOCIATED variables
    TYPE SCHEMA_TABLE is TABLE OF VARCHAR2(30)
    INDEX BY BINARY_INTEGER;
    V_SCHEMAS SCHEMA_TABLE;
    V_INS_STMT VARCHAR2(400);
    V_I BINARY_INTEGER := 1;
    V_SCHEMAS_S VARCHAR2(30);
    Assign :new data to Maximo Variables
    BEGIN
    V_DUMMY := 'LINE58';
    V_MAX_ITEMNUM := :new.ITEM;
    V_LWS_DESC1      := :new.DESCRIPTION;
    V_LWS_DESC2     := :new.DESCRIPTION2;
    V_MAX_LOTTYPE := :new.LOT_TRACK_FL;
    V_MAX_HAZARDID := :new.HAZARD_CODE;
    V_MAX_ORDERUNIT := :new.STOCK_UOM;
    V_MAX_ISSUEUNIT := :new.STOCK_UOM;
    V_MAX_MODELNUM := LTRIM(RTRIM
    (:new.USER_FIELD1));
    V_MAX_CATALOGCODE := :new.GENERIC;
    V_DUMMY := 'LINE94';
    --IF MWRA CREATES NEW MAXIMO LOCATIONS THEY MUST BE ADDED HERE
    IN SEQUENCE--
    DO NOT EXCEED 25 CHARACTERS OR CHANGE VARIABLE DECLARATION
    -- V_SCHEMAS
    (1) := 'MAXOPS.MAX_ITM_INTERFACE';
    V_SCHEMAS
    (1) := 'MAXDI.MAX_ITM_INTERFACE';
    -- V_SCHEMAS
    (3) := 'MAXVM.MAX_ITM_INTERFACE';
    V_DUMMY := 'LINE102';
    Get ITCOMMENT Info
    OPEN itcomment_cursor;
    FETCH itcomment_cursor into ico_data;
    IF itcomment_cursor%FOUND THEN
    V_LWS_ICOINDEX :=
    ico_data.L_INDEX;
    CLOSE itcomment_cursor;
    OPEN hico_cursor;
    FETCH hico_cursor INTO hic_data;
    IF hico_cursor%FOUND THEN
    V_DUMMY := 'LINE112';
    V_LWS_ITCOMMENT := SUBSTR(hic_data.OBJECT, 95, 63);
    V_MAX_DESCRIPTION := V_LWS_DESC1 || V_LWS_DESC2 ||
    V_LWS_ITCOMMENT;
    CLOSE hico_cursor;
         ELSE
    CLOSE hico_cursor;
    V_MAX_DESCRIPTION := V_LWS_DESC1 || V_LWS_DESC2;
    END IF;
    ELSE
    CLOSE itcomment_cursor;
    V_MAX_DESCRIPTION := V_LWS_DESC1 || V_LWS_DESC2;
    END IF;
    V_DUMMY := 'LINE128';
    Get Sysdate
    OPEN date_cursor;
    FETCH date_cursor into date_data;
    V_MAX_CHANGEDATE := date_data.sysdate;
    CLOSE date_cursor;
    --WHILE LOOP TO INSERT DATA INTO MAX_ITM_INTERFACE FOR EACH
    RECORD IN INDEX-BY TABLE--
    V_DUMMY := 'LINE137';
    WHILE V_SCHEMAS.EXISTS(V_I) LOOP
    V_SCHEMAS_S := V_SCHEMAS(V_I);
    V_INS_STMT := 'INSERT INTO ' || V_SCHEMAS_S ||
    ' (ITEMNUM,' ||
    ' DESCRIPTION,' ||
    ' LOTTYPE,' ||
    ' HAZARDID,' ||
    ' LOCATION,' ||
    ' ORDERUNIT,' ||
    ' ISSUEUNIT,' ||
    ' MODELNUM,' ||
    ' CATALOGCODE,' ||
    ' CHANGEBY,' ||
    ' CHANGEDATE)' ||
    ' VALUES' ||
    (:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11)';
    V_DUMMY := 'LINE142';
    EXECUTE IMMEDIATE V_INS_STMT
    USING V_MAX_ITEMNUM,
    V_DUMMY,
    V_MAX_LOTTYPE,
    V_MAX_HAZARDID,
    V_LWS_LOCATION,
    V_MAX_ORDERUNIT,
    V_MAX_ISSUEUNIT,
    V_MAX_MODELNUM,
    V_MAX_CATALOGCODE,
    V_MAX_CHANGEBY,
    V_MAX_CHANGEDATE;
    V_I := V_I + 1;
    END LOOP;
    V_DUMMY := 'LINE164';
    EXCEPTION
    WHEN OTHERS THEN
    ERROR_CODE := SQLCODE;
    ERROR_MSG := SQLERRM;
    ERROR_MSG := ERROR_MSG || '-' || TO_CHAR(ERROR_CODE);
    INSERT INTO MAXIMO.TEMP_ERRS MTE (MTE.ERR_NUMBER,
    MTE.LINE, MTE.TYPE, MTE.COMMENTS)
    VALUES ('20900', V_DUMMY, 'ITM', ERROR_MSG);
    END;
    Aleksei, why are you using dynamic SQL (execute immediate) in
    your trigger? Normally, there should be no reason to do so
    unless you were performing DDL (create/alter table, etc.)
    statement.
    You should just use "regular" SQL to do your inserts for several
    performance-related reasons. Go ahead and post your code if you
    have questions about this.

  • Canon MP970:  Degrading Performance, Through PC. HELP

    This one has me pulling my hair out.
    My wife & I have a set up of an XP PC & iMAC dual core in room.
    We have the MP970 network printer, set up on our wireless network in room.
    Canon is very specific on how you have to do this to work with 2 CPUs, & we have followed the rules.
    For months it seemed to work withour problems.
    The PC is the primary (first) installation for the printer.
    The Mac is second.
    Scanning works great, & it the printer shows up in all dialogue boxes, etc on my MAC (w/ MAC address behind the name).
    PROBLEM: Lately when printing from iphoto, the dialogue box opens but it spools forever & does not print. OR worse yet, it prints some, slows down & then just STOPS. spitting out the top 10% of the picture.
    HINT?: Ill have jobs "in process" that go no where, then reboot my Mac & 4 old jobs suddenly print out on reboot.
    What gives & ANY ideas on how to fix this?
    Ive gone into my router & ensured the printers mac address has priority QoS over any other transmissions. ANY HELP is appreciated.

    In reading your post I have a couple of questions about the network setup.
    The first is you mention "Canon is very specific on how you have to do this to work with 2 CPUs...". Because the MP970 has built-in Ethernet and Wireless, then you can just connect your Mac directly to it, regardless of the number of other computers connecting to it. I would be curious to hear what they told you...
    Also, you mention the PC is the primary and the Mac is second. What do you mean by this. As far as the machine is concerned, there is no order of connection, so are you referring to your own network?
    Sorry for the quiz, but just trying to get a better understanding of your network and possible causes for the performance issues you are experiencing...
    PaHu

  • Degrade performance in ECC 6.0

    Hi,
    in a system upgraded previus month, form few days we have bad performance. It's a Solaris 10 SPARC box with Oracle 10.2.0.4. This is a ECC 6.0 Abap only system with Kernel patch 180.
    Yesterday eveneing we try with a "brconnect -c -u / -f stats -t all -f collect -p 4" to have opt. statistic but without success.
    Until previus week we have 700-800 ms as dialog responde time, from saturday we have 1500-1600 ms as dialog responce time. And several btc job run for a long time.
    Have you got any advice ?
    Regards.

    Hi,
    are there any other significat patch to install for a ECC 6.0 on Oracle 10.2.0.4 ?
    Regards.
    Ganimede Dignan.
    Installed Top-level Products (2):
    Oracle Database 10g                                                  10.2.0.1.0
    Oracle Database 10g Release 2 Patch Set 3                            10.2.0.4.0
    There are 2 products installed in this Oracle Home.
    Interim patches (27) :
    Patch  7228971      : applied on Fri Nov 14 16:36:18 CET 2008
       Created on 8 Jul 2008, 11:44:24 hrs PST8PDT
       Bugs fixed:
         6440977, 6120483, 5714944, 6626018, 6670551, 6329318, 7149751, 7228971
         6988848, 7188932, 6221403, 6972291
    Patch  7149863      : applied on Fri Nov 14 16:35:42 CET 2008
       Created on 9 Jun 2008, 02:59:31 hrs PST8PDT
       Bugs fixed:
         7149863, 7022905, 5623467
    Patch  7046187      : applied on Fri Nov 14 16:35:21 CET 2008
       Created on 21 May 2008, 10:46:23 hrs US/Pacific
       Bugs fixed:
         5890312, 6760697, 6962622, 5970301, 7046187, 5934363, 5704108
    Patch  7027551      : applied on Fri Nov 14 16:34:56 CET 2008
       Created on 4 Jun 2008, 10:50:09 hrs US/Pacific
       Bugs fixed:
         7027551
    Patch  6972843      : applied on Fri Nov 14 16:34:38 CET 2008
       Created on 21 May 2008, 11:10:01 hrs US/Pacific
       Bugs fixed:
         6972843
    Patch  6954829      : applied on Fri Nov 14 16:34:20 CET 2008
       Created on 21 May 2008, 03:53:49 hrs US/Pacific
       Bugs fixed:
         6954829
    Patch  6944036      : applied on Fri Nov 14 16:33:59 CET 2008
       Created on 5 Jun 2008, 02:16:55 hrs PST8PDT
       Bugs fixed:
         6944036
    Patch  6934892      : applied on Fri Nov 14 16:33:50 CET 2008
       Created on 24 Jun 2008, 23:47:13 hrs PST8PDT
       Bugs fixed:
         6934892
    Patch  6917874      : applied on Fri Nov 14 16:33:39 CET 2008
       Created on 13 May 2008, 08:21:36 hrs US/Pacific
       Bugs fixed:
         6917874
    Patch  6826661      : applied on Fri Nov 14 16:33:16 CET 2008
       Created on 5 Jun 2008, 02:21:26 hrs PST8PDT
       Bugs fixed:
         6826661
    Patch  6768114      : applied on Fri Nov 14 16:33:06 CET 2008
       Created on 22 May 2008, 12:01:38 hrs US/Pacific
       Bugs fixed:
         6768114
    Patch  6705635      : applied on Fri Nov 14 16:32:53 CET 2008
       Created on 14 May 2008, 22:50:58 hrs PST8PDT
       Bugs fixed:
         6705635
    Patch  6679303      : applied on Fri Nov 14 16:32:45 CET 2008
       Created on 8 Jul 2008, 22:19:26 hrs PST8PDT
       Bugs fixed:
         6679303
    Patch  6645719      : applied on Fri Nov 14 16:32:32 CET 2008
       Created on 22 May 2008, 12:12:26 hrs US/Pacific
       Bugs fixed:
         6645719
    Patch  6506617      : applied on Fri Nov 14 16:32:19 CET 2008
       Created on 11 Jun 2008, 10:28:30 hrs US/Pacific
       Bugs fixed:
         6506617
    Patch  6396242      : applied on Fri Nov 14 16:31:57 CET 2008
       Created on 17 Mar 2008, 23:02:47 hrs US/Pacific
       Bugs fixed:
         6396242
    Patch  6324944      : applied on Fri Nov 14 16:31:40 CET 2008
       Created on 21 May 2008, 12:42:06 hrs US/Pacific
       Bugs fixed:
         6324944
    Patch  6151380      : applied on Fri Nov 14 16:31:19 CET 2008
       Created on 21 May 2008, 07:02:06 hrs US/Pacific
       Bugs fixed:
         6151380
    Patch  6084232      : applied on Fri Nov 14 16:30:48 CET 2008
       Created on 22 May 2008, 12:36:51 hrs US/Pacific
       Bugs fixed:
         6084232
    Patch  6051177      : applied on Fri Nov 14 16:30:30 CET 2008
       Created on 21 May 2008, 09:42:56 hrs US/Pacific
       Bugs fixed:
         6051177
    Patch  5935935      : applied on Fri Nov 14 16:30:10 CET 2008
       Created on 21 May 2008, 04:25:22 hrs US/Pacific
       Bugs fixed:
         5935935
    Patch  5923486      : applied on Fri Nov 14 16:29:50 CET 2008
       Created on 21 May 2008, 05:55:44 hrs US/Pacific
       Bugs fixed:
         5923486
    Patch  5895190      : applied on Fri Nov 14 16:29:28 CET 2008
       Created on 21 May 2008, 05:38:52 hrs US/Pacific
       Bugs fixed:
         5895190
    Patch  5756769      : applied on Fri Nov 14 16:29:07 CET 2008
       Created on 22 May 2008, 00:35:33 hrs US/Pacific
       Bugs fixed:
         5756769
    Patch  5747462      : applied on Fri Nov 14 16:28:41 CET 2008
       Created on 22 May 2008, 00:17:34 hrs US/Pacific
       Bugs fixed:
         5747462
    Patch  5386204      : applied on Fri Nov 14 16:28:14 CET 2008
       Created on 19 May 2008, 12:37:10 hrs US/Pacific
       Bugs fixed:
         5386204
    Patch  5251842      : applied on Fri Nov 14 16:27:51 CET 2008
       Created on 2 Jul 2008, 11:27:18 hrs US/Pacific
       Bugs fixed:
         5251842

  • Degraded Performance with Partitioning

    We are using Oracle 11.2.0.3 on Solaris. There is a view defined on a few tables. Because of its complexness and the size of tables, the performance of the view is not good. So, I changed two of the tables to partitioned tables, list-partitioned by year. All indexes on these two tables were changed to local partitioned, with year as the leading index keys. Statistics on all tables and indexes were collected. I then created a new view with the two tables replaced with the partitioned ones. I also ran SQL Tuning advisor and created recommended indexes. I hoped the new view would be faster than the old one, but the fact is the opposite.
    The old view has order-by clause. If I remove the order-by in the new view, the elapsed time is close to the old one which has order-by. With "select * from new-view order by ...", or even a "select count(*) from new-view", I never got a return in few hours.
    SQL Tuning Advisor shows partition-pruning, all operations are on one partition, and the only recommendation now is accepting SQL profile. I don't understand why partitioning has such a bad result. This is really frustrating to me. Not sure if anyone here experienced something similar, or know there is an Oracle bug, or can tell me where I am lost.
    Appreciate your advice.
    Gary
    Edited by: user12131557 on Feb 25, 2013 3:15 PM

    This is the old plan. Again, please replace # with seven spaces to read.
    | Id  | Operation#######   | Name###      | Rows  | Bytes |TempSpc| Cost  |
    |   0 | SELECT STATEMENT######   |####    |#|#|#| 50259 |
    |   1 |  SORT ORDER BY######     |####    |    27 | 21951 |#| 50259 |
    |   2 |   VIEW#######      | VW_BCZC_REPORT##   |    27 | 21951 |#| 50233 |
    |   3 |    SORT ORDER BY######   |####    |    27 |  8937 |#| 50233 |
    |   4 |     NESTED LOOPS OUTER#####    |####    |    27 |  8937 |#| 50207 |
    |*  5 |      HASH JOIN OUTER#####      |####    |    27 |  7614 |#| 50167 |
    |*  6 |#HASH JOIN######    |####    |    27 |  6291 |#| 46428 |
    |   7 |# TABLE ACCESS FULL#####  | HSD_SUMMARY_OUTPUT#      |   762 | 21336 |#|     4 |
    |*  8 |# HASH JOIN######   |####    | 44145 |  8837K|#| 46421 |
    |   9 |#  TABLE ACCESS FULL##### | HSD_LOOKUP###|   132 |  6732 |#|     3 |
    |* 10 |#  HASH JOIN######  |####    | 43142 |  6488K|#| 46417 |
    |  11 |#   TABLE ACCESS FULL#####| HSD_COUNTY###|  3227 | 74221 |#|     4 |
    |* 12 |#   HASH JOIN###### |####    | 43142 |  5519K|#| 46406 |
    |  13 |#    VIEW######     |####    |     4 |    56 |#|   208 |
    |  14 |#     SORT UNIQUE#####    |####    |     4 |   406 |#|   208 |
    |  15 |#      UNION-ALL#####     |####    |#|#|#|#|
    |* 16 |##FILTER######|####    |#|#|#|#|
    |  17 |## SORT GROUP BY####      |####    |     1 |   109 |#|    67 |
    |  18 |##  NESTED LOOPS####      |####    |     1 |   109 |#|    18 |
    |  19 |##   NESTED LOOPS####     |####    |     1 |    67 |#|    17 |
    |* 20 |##    INDEX FULL SCAN#### | HSD_SUMMARY_OUTPUT_INDX3#|    10 |   230 |#|     2 |
    |  21 |##    TABLE ACCESS BY INDEX ROWID##   | CONTRACT_X_COUNTY##|     1 |    44 |#|     2 |
    |* 22 |##     INDEX RANGE SCAN###      | CONTRACT_X_COUNTY_APP_ID_IDX   |     1 |#|#|     1 |
    |* 23 |##   INDEX RANGE SCAN#### | CONTRACT_X_COUNTY_PK#    |     1 |    42 |#|     1 |
    |* 24 |##FILTER######|####    |#|#|#|#|
    |  25 |## SORT GROUP BY####      |####    |     1 |   106 |#|    62 |
    |  26 |##  NESTED LOOPS####      |####    |     1 |   106 |#|    13 |
    |  27 |##   NESTED LOOPS####     |####    |     1 |    64 |#|    12 |
    |* 28 |##    INDEX FULL SCAN#### | HSD_SUMMARY_OUTPUT_INDX3#|    10 |   230 |#|     2 |
    |* 29 |##    TABLE ACCESS BY INDEX ROWID##   | CONTRACT_X_PARTIAL_ZIPCODE     |     1 |    41 |#|     1 |
    |* 30 |##     INDEX RANGE SCAN###      | CONTRACT_X_PAR_ZIP_APP_ID_IDX  |     1 |#|#|     1 |
    |* 31 |##   INDEX RANGE SCAN#### | CONTRACT_X_PARTIAL_ZIPCODE_PK  |     1 |    42 |#|     1 |
    |* 32 |##FILTER######|####    |#|#|#|#|
    |  33 |## NESTED LOOPS#####|####    |     1 |    94 |#|     8 |
    |  34 |##  NESTED LOOPS####      |####    |     1 |    72 |#|     6 |
    |  35 |##   NESTED LOOPS####     |####    |     1 |    63 |#|     5 |
    |  36 |##    NESTED LOOPS####    |####    |     1 |    52 |#|     4 |
    |* 37 |##     TABLE ACCESS BY INDEX ROWID##  | CONTRACT_INFORMATION#    |     1 |    25 |#|     3 |
    |* 38 |##      INDEX RANGE SCAN###     | IX2_CONTRACT_INFORMATION#|     1 |#|#|     2 |
    |  39 |###SORT AGGREGATE###      |####    |     1 |    22 |#|#|
    |  40 |### FIRST ROW####   |####    |     1 |    22 |#|     1 |
    |* 41 |###  INDEX RANGE SCAN (MIN/MAX)#      | CONTRACT_INFORMATION_PK# |     1 |    22 |#|     1 |
    |* 42 |##     TABLE ACCESS BY INDEX ROWID##  | CONTRACT_X_REGION##|     1 |    27 |#|     1 |
    |* 43 |##      INDEX RANGE SCAN###     | CONTRACT_X_REGION_PK#    |     1 |#|#|     1 |
    |* 44 |##    INDEX RANGE SCAN####| HSD_SUMMARY_OUTPUT_INDX4#|     1 |    11 |#|     1 |
    |  45 |##   TABLE ACCESS BY INDEX ROWID##    | STATES###    |     1 |     9 |#|     1 |
    |* 46 |##    INDEX RANGE SCAN####| STATES_INDX2##     |     2 |#|#|     1 |
    |* 47 |##  TABLE ACCESS BY INDEX ROWID##     | COUNTIES###  |     2 |    44 |#|     2 |
    |* 48 |##   INDEX RANGE SCAN#### | COUNTIES_INDX_4##  |    54 |#|#|     1 |
    |  49 |## SORT AGGREGATE####     |####    |     1 |    25 |#|#|
    |* 50 |##  TABLE ACCESS BY INDEX ROWID##     | CONTRACT_X_REGION##|     1 |    25 |#|     1 |
    |* 51 |##   INDEX RANGE SCAN#### | IX1_CONTRACT_X_REGION#   |     1 |#|#|     1 |
    |* 52 |##FILTER######|####    |#|#|#|#|
    |  53 |## NESTED LOOPS#####|####    |     1 |    97 |#|    18 |
    |  54 |##  NESTED LOOPS####      |####    |     1 |    75 |#|    16 |
    |  55 |##   NESTED LOOPS####     |####    |     1 |    66 |#|    15 |
    |  56 |##    NESTED LOOPS####    |####    |     4 |   152 |#|    11 |
    |* 57 |##     INDEX RANGE SCAN###      | IX1_HSD_SUMMARY_OUTPUT#  |    10 |   110 |#|     1 |
    |* 58 |##     TABLE ACCESS BY INDEX ROWID##  | CONTRACT_X_REGION##|     1 |    27 |#|     1 |
    |* 59 |##      INDEX RANGE SCAN###     | CONTRACT_X_REGION_PK#    |     1 |#|#|     1 |
    |* 60 |##    TABLE ACCESS BY INDEX ROWID##   | CONTRACT_INFORMATION#    |     1 |    28 |#|     1 |
    |* 61 |##     INDEX RANGE SCAN###      | CONTRACT_INFORMATION_PK# |     1 |#|#|     1 |
    |  62 |##      SORT AGGREGATE####|####    |     1 |    22 |#|#|
    |  63 |###FIRST ROW####    |####    |     1 |    22 |#|     1 |
    |* 64 |### INDEX RANGE SCAN (MIN/MAX)##| CONTRACT_INFORMATION_PK# |     1 |    22 |#|     1 |
    |  65 |##   TABLE ACCESS BY INDEX ROWID##    | STATES###    |     1 |     9 |#|     1 |
    |* 66 |##    INDEX RANGE SCAN####| STATES_INDX1##     |     1 |#|#|     1 |
    |* 67 |##  TABLE ACCESS BY INDEX ROWID##     | COUNTIES###  |     2 |    44 |#|     2 |
    |* 68 |##   INDEX RANGE SCAN#### | COUNTIES_INDX_4##  |    54 |#|#|     1 |
    |  69 |## SORT AGGREGATE####     |####    |     1 |    25 |#|#|
    |* 70 |##  TABLE ACCESS BY INDEX ROWID##     | CONTRACT_X_REGION##|     1 |    25 |#|     1 |
    |* 71 |##   INDEX RANGE SCAN#### | IX1_CONTRACT_X_REGION#   |     1 |#|#|     1 |
    |  72 |#    VIEW######     |####    |  1078K|   120M|#| 46189 |
    |  73 |#     SORT GROUP BY#####  |####    |  1078K|   120M|#| 46189 |
    |  74 |#      VIEW######   |####    |  1078K|   120M|#| 35578 |
    |  75 |##SORT UNIQUE#####  |####    |  1078K|   147M|   324M| 35578 |
    |  76 |## UNION-ALL#####   |####    |#|#|#|#|
    |* 77 |##  FILTER#####     |####    |#|#|#|#|
    |* 78 |##   HASH JOIN OUTER####  |####    |  1078K|   147M|   141M|  5496 |
    |  79 |##    VIEW#####     |####    |  1078K|   129M|#|  1082 |
    |* 80 |##     HASH JOIN####      |####    |  1078K|    46M|#|  1082 |
    |  81 |##      INDEX FULL SCAN###      | HSD_SUMMARY_OUTPUT_INDX3#|   762 | 11430 |#|     2 |
    |  82 |##      TABLE ACCESS FULL###    | HSD_NCB_OUTPUT##   |  1078K|    30M|#|  1071 |
    |  83 |##    VIEW#####     |####    |     5 |    85 |#|  2152 |
    |  84 |##     SORT UNIQUE####    |####    |     5 |   262 |#|  2152 |
    |  85 |##      UNION-ALL####     |####    |#|#|#|#|
    |  86 |###VIEW#####  |####    |     4 |    68 |#|   203 |
    |  87 |### SORT UNIQUE#### |####    |     4 |   398 |#|   203 |
    |  88 |###  UNION-ALL####  |####    |#|#|#|#|
    |* 89 |###   FILTER####    |####    |#|#|#|#|
    |  90 |###    SORT GROUP BY###   |####    |     1 |   107 |#|    62 |
    |  91 |###     NESTED LOOPS###   |####    |     1 |   107 |#|    13 |
    |  92 |###      NESTED LOOPS###  |####    |     1 |    65 |#|    12 |
    |* 93 |####INDEX FULL SCAN##     | HSD_SUMMARY_OUTPUT_INDX3#|    10 |   230 |#|     2 |
    |* 94 |####INDEX RANGE SCAN##    | CONTRACT_X_COUNTY_APP_ID_IDX   |     1 |    42 |#|     1 |
    |* 95 |###      INDEX RANGE SCAN##     | CONTRACT_X_COUNTY_PK#    |     1 |    42 |#|     1 |
    |* 96 |###   FILTER####    |####    |#|#|#|#|
    |  97 |###    SORT GROUP BY###   |####    |     1 |   104 |#|    62 |
    |  98 |###     NESTED LOOPS###   |####    |     1 |   104 |#|    13 |
    |  99 |###      NESTED LOOPS###  |####    |     1 |    62 |#|    12 |
    |*100 |####INDEX FULL SCAN##     | HSD_SUMMARY_OUTPUT_INDX3#|    10 |   230 |#|     2 |
    |*101 |####TABLE ACCESS BY INDEX ROWID#| CONTRACT_X_PARTIAL_ZIPCODE     |     1 |    39 |#|     1 |
    |*102 |#### INDEX RANGE SCAN##   | CONTRACT_X_PAR_ZIP_APP_ID_IDX  |     1 |#|#|     1 |
    |*103 |###      INDEX RANGE SCAN##     | CONTRACT_X_PARTIAL_ZIPCODE_PK  |     1 |    42 |#|     1 |
    |*104 |###   FILTER####    |####    |#|#|#|#|
    |*105 |###    FILTER####   |####    |#|#|#|#|
    | 106 |###     NESTED LOOPS###   |####    |     1 |    92 |#|     8 |
    | 107 |###      NESTED LOOPS###  |####    |     1 |    70 |#|     6 |
    | 108 |####NESTED LOOPS### |####    |     1 |    61 |#|     5 |
    | 109 |#### NESTED LOOPS###|####    |     1 |    50 |#|     4 |
    |*110 |####  TABLE ACCESS BY INDEX ROWID     | CONTRACT_INFORMATION#    |     1 |    25 |#|     3 |
    |*111 |####   INDEX RANGE SCAN## | IX2_CONTRACT_INFORMATION#|     1 |#|#|     2 |
    | 112 |####    SORT AGGREGATE##  |####    |     1 |    22 |#|#|
    | 113 |####     FIRST ROW##      |####    |     1 |    22 |#|     1 |
    |*114 |####      INDEX RANGE SCAN (MIN/MAX)  | CONTRACT_INFORMATION_PK# |     1 |    22 |#|     1 |
    |*115 |####  TABLE ACCESS BY INDEX ROWID     | CONTRACT_X_REGION##|     1 |    25 |#|     1 |
    |*116 |####   INDEX RANGE SCAN## | CONTRACT_X_REGION_PK#    |     1 |#|#|     1 |
    |*117 |#### INDEX RANGE SCAN##   | HSD_SUMMARY_OUTPUT_INDX4#|     1 |    11 |#|     1 |
    | 118 |####TABLE ACCESS BY INDEX ROWID#| STATES###    |     1 |     9 |#|     1 |
    |*119 |#### INDEX RANGE SCAN##   | STATES_INDX2##     |     2 |#|#|     1 |
    |*120 |###      TABLE ACCESS BY INDEX ROWID# | COUNTIES###  |     2 |    44 |#|     2 |
    |*121 |####INDEX RANGE SCAN##    | COUNTIES_INDX_4##  |    54 |#|#|     1 |
    | 122 |###    SORT AGGREGATE###  |####    |     1 |    25 |#|#|
    |*123 |###     TABLE ACCESS BY INDEX ROWID#  | CONTRACT_X_REGION##|     1 |    25 |#|     1 |
    |*124 |###      INDEX RANGE SCAN##     | IX1_CONTRACT_X_REGION#   |     1 |#|#|     1 |
    |*125 |###   FILTER####    |####    |#|#|#|#|
    |*126 |###    FILTER####   |####    |#|#|#|#|
    | 127 |###     NESTED LOOPS###   |####    |     1 |    95 |#|    18 |
    | 128 |###      NESTED LOOPS###  |####    |     1 |    73 |#|    16 |
    | 129 |####NESTED LOOPS### |####    |     1 |    64 |#|    15 |
    | 130 |#### NESTED LOOPS###|####    |     4 |   144 |#|    11 |
    |*131 |####  INDEX RANGE SCAN##  | IX1_HSD_SUMMARY_OUTPUT#  |    10 |   110 |#|     1 |
    |*132 |####  TABLE ACCESS BY INDEX ROWID     | CONTRACT_X_REGION##|     1 |    25 |#|     1 |
    |*133 |####   INDEX RANGE SCAN## | CONTRACT_X_REGION_PK#    |     1 |#|#|     1 |
    |*134 |#### TABLE ACCESS BY INDEX ROWID      | CONTRACT_INFORMATION#    |     1 |    28 |#|     1 |
    |*135 |####  INDEX RANGE SCAN##  | CONTRACT_INFORMATION_PK# |     1 |#|#|     1 |
    | 136 |####   SORT AGGREGATE##   |####    |     1 |    22 |#|#|
    | 137 |####    FIRST ROW###|####    |     1 |    22 |#|     1 |
    |*138 |####     INDEX RANGE SCAN (MIN/MAX)   | CONTRACT_INFORMATION_PK# |     1 |    22 |#|     1 |
    | 139 |####TABLE ACCESS BY INDEX ROWID#| STATES###    |     1 |     9 |#|     1 |
    |*140 |#### INDEX RANGE SCAN##   | STATES_INDX1##     |     1 |#|#|     1 |
    |*141 |###      TABLE ACCESS BY INDEX ROWID# | COUNTIES###  |     2 |    44 |#|     2 |
    |*142 |####INDEX RANGE SCAN##    | COUNTIES_INDX_4##  |    54 |#|#|     1 |
    | 143 |###    SORT AGGREGATE###  |####    |     1 |    25 |#|#|
    |*144 |###     TABLE ACCESS BY INDEX ROWID#  | CONTRACT_X_REGION##|     1 |    25 |#|     1 |
    |*145 |###      INDEX RANGE SCAN##     | IX1_CONTRACT_X_REGION#   |     1 |#|#|     1 |
    | 146 |###INTERSECTION#### |####    |#|#|#|#|
    | 147 |### SORT UNIQUE#### |####    |     1 |    97 |#|#|
    |*148 |###  FILTER####     |####    |#|#|#|#|
    | 149 |###   SORT GROUP BY###    |####    |     1 |    97 |#|  1822 |
    |*150 |###    HASH JOIN####|####    |     7 |   679 |#|  1773 |
    |*151 |###     TABLE ACCESS BY INDEX ROWID#  | CONTRACT_X_COUNTY##|  2357 | 98994 |#|   885 |
    |*152 |###      INDEX RANGE SCAN##     | CONTRACT_X_COUNTY_INDX_6#|   148K|#|#|   157 |
    | 153 |###     NESTED LOOPS OUTER##    |####    |  2338 |   125K|#|   886 |
    |*154 |###      TABLE ACCESS BY INDEX ROWID# | CONTRACT_X_COUNTY##|  2338 | 86506 |#|   885 |
    |*155 |####INDEX RANGE SCAN##    | CONTRACT_X_COUNTY_INDX_6#|   148K|#|#|   157 |
    |*156 |###      INDEX UNIQUE SCAN##    | CONTRACT_AREA_SUPP_INFO_PK     |     1 |    18 |#|     1 |
    | 157 |### SORT UNIQUE#### |####    |     1 |    97 |#|#|
    |*158 |###  FILTER####     |####    |#|#|#|#|
    | 159 |###   SORT GROUP BY###    |####    |     1 |    97 |#|   103 |
    | 160 |###    NESTED LOOPS###    |####    |     1 |    97 |#|    54 |
    | 161 |###     NESTED LOOPS OUTER##    |####    |    20 |  1100 |#|    34 |
    |*162 |###      INDEX RANGE SCAN##     | IX1_CONTRACT_X_COUNTY#   |    20 |   740 |#|    33 |
    |*163 |###      INDEX UNIQUE SCAN##    | CONTRACT_AREA_SUPP_INFO_PK     |     1 |    18 |#|     1 |
    |*164 |###     INDEX RANGE SCAN##      | CONTRACT_X_COUNTY_PK#    |     1 |    42 |#|     1 |
    | 165 |##  TABLE ACCESS BY INDEX ROWID##     | HSD_NCB_OUTPUT##   |     1 |    30 |#|     2 |
    | 166 |##   NESTED LOOPS####     |####    |     1 |    78 |#|  6158 |
    |*167 |##    HASH JOIN#####|####    |     1 |    48 |#|  6157 |
    | 168 |##     NESTED LOOPS####   |####    |     1 |    31 |#|  4004 |
    | 169 |##      VIEW#####   |####    |     2 |    32 |#|  4004 |
    | 170 |###SORT UNIQUE####  |####    |     2 |   152 |#|  4004 |
    | 171 |### UNION-ALL####   |####    |#|#|#|#|
    |*172 |###  HASH JOIN####  |####    |     1 |    88 |#|  2002 |
    |*173 |###   FILTER####    |####    |#|#|#|#|
    |*174 |###    HASH JOIN OUTER### |####    |     1 |    64 |#|  1938 |
    |*175 |###     TABLE ACCESS BY INDEX ROWID#  | CONTRACT_X_PARTIAL_ZIPCODE     |     1 |    40 |#|     1 |
    | 176 |###      NESTED LOOPS###  |####    |     1 |    56 |#|    12 |
    |*177 |####INDEX FULL SCAN##     | HSD_SUMMARY_OUTPUT_INDX3#|    10 |   160 |#|     2 |
    |*178 |####INDEX RANGE SCAN##    | CONTRACT_X_PAR_ZIP_APP_ID_IDX  |     1 |#|#|     1 |
    | 179 |###     VIEW####    | VW_HSD_PARTIAL_EXPANSION_ONLY  |     1 |     8 |#|  1925 |
    | 180 |###      INTERSECTION###  |####    |#|#|#|#|
    | 181 |####SORT UNIQUE###  |####    |     1 |    97 |#|#|
    |*182 |#### FILTER###      |####    |#|#|#|#|
    | 183 |####  SORT GROUP BY##     |####    |     1 |    97 |#|  1822 |
    |*184 |####   HASH JOIN### |####    |     7 |   679 |#|  1773 |
    |*185 |####    TABLE ACCESS BY INDEX ROWID   | CONTRACT_X_COUNTY##|  2357 | 98994 |#|   885 |
    |*186 |####     INDEX RANGE SCAN#      | CONTRACT_X_COUNTY_INDX_6#|   148K|#|#|   157 |
    | 187 |####    NESTED LOOPS OUTER#     |####    |  2338 |   125K|#|   886 |
    |*188 |####     TABLE ACCESS BY INDEX ROWID  | CONTRACT_X_COUNTY##|  2338 | 86506 |#|   885 |
    |*189 |####      INDEX RANGE SCAN#     | CONTRACT_X_COUNTY_INDX_6#|   148K|#|#|   157 |
    |*190 |####     INDEX UNIQUE SCAN#     | CONTRACT_AREA_SUPP_INFO_PK     |     1 |    18 |#|     1 |
    | 191 |####SORT UNIQUE###  |####    |     1 |    97 |#|#|
    |*192 |#### FILTER###      |####    |#|#|#|#|
    | 193 |####  SORT GROUP BY##     |####    |     1 |    97 |#|   103 |
    | 194 |####   NESTED LOOPS##     |####    |     1 |    97 |#|    54 |
    | 195 |####    NESTED LOOPS OUTER#     |####    |    20 |  1100 |#|    34 |
    |*196 |####     INDEX RANGE SCAN#      | IX1_CONTRACT_X_COUNTY#   |    20 |   740 |#|    33 |
    |*197 |####     INDEX UNIQUE SCAN#     | CONTRACT_AREA_SUPP_INFO_PK     |     1 |    18 |#|     1 |
    |*198 |####    INDEX RANGE SCAN##| CONTRACT_X_COUNTY_PK#    |     1 |    42 |#|     1 |
    | 199 |###   VIEW####      | VW_SQ_7###   |    30 |   720 |#|    64 |
    |*200 |###    FILTER####   |####    |#|#|#|#|
    | 201 |###     SORT GROUP BY###  |####    |    30 |  1530 |#|    64 |
    |*202 |###      INDEX FAST FULL SCAN## | CONTRACT_X_PARTIAL_ZIPCODE_PK  |   588 | 29988 |#|    37 |
    |*203 |###  FILTER####     |####    |#|#|#|#|
    | 204 |###   NESTED LOOPS OUTER##      |####    |     1 |    64 |#|  1952 |
    | 205 |###    VIEW####     |####    |     1 |    38 |#|  1951 |
    | 206 |###     SORT UNIQUE###    |####    |     1 |    50 |#|  1951 |
    | 207 |###      NESTED LOOPS###  |####    |     1 |    50 |#|  1927 |
    | 208 |####NESTED LOOPS### |####    |     1 |    34 |#|  1926 |
    | 209 |#### VIEW#### | VW_HSD_PARTIAL_EXPANSION_ONLY  |     1 |    14 |#|  1925 |
    | 210 |####  INTERSECTION##      |####    |#|#|#|#|
    | 211 |####   SORT UNIQUE##      |####    |     1 |    97 |#|#|
    |*212 |####    FILTER###   |####    |#|#|#|#|
    | 213 |####     SORT GROUP BY##  |####    |     1 |    97 |#|  1822 |
    |*214 |####      HASH JOIN##     |####    |     7 |   679 |#|  1773 |
    |*215 | D####     TABLE ACCESS BY INDEX ROWI | CONTRACT_X_COUNTY##|  2357 | 98994 |#|   885 |
    |*216 |##### INDEX RANGE SCAN#   | CONTRACT_X_COUNTY_INDX_6#|   148K|#|#|   157 |
    | 217 |#####NESTED LOOPS OUTER#  |####    |  2338 |   125K|#|   886 |
    |*218 | ID####     TABLE ACCESS BY INDEX ROW | CONTRACT_X_COUNTY##|  2338 | 86506 |#|   885 |
    |*219 |#####  INDEX RANGE SCAN#  | CONTRACT_X_COUNTY_INDX_6#|   148K|#|#|   157 |
    |*220 |##### INDEX UNIQUE SCAN#  | CONTRACT_AREA_SUPP_INFO_PK     |     1 |    18 |#|     1 |
    | 221 |####   SORT UNIQUE##      |####    |     1 |    97 |#|#|
    |*222 |####    FILTER###   |####    |#|#|#|#|
    | 223 |####     SORT GROUP BY##  |####    |     1 |    97 |#|   103 |
    | 224 |####      NESTED LOOPS##  |####    |     1 |    97 |#|    54 |
    | 225 |#####NESTED LOOPS OUTER#  |####    |    20 |  1100 |#|    34 |
    |*226 |##### INDEX RANGE SCAN#   | IX1_CONTRACT_X_COUNTY#   |    20 |   740 |#|    33 |
    |*227 |##### INDEX UNIQUE SCAN#  | CONTRACT_AREA_SUPP_INFO_PK     |     1 |    18 |#|     1 |
    |*228 |#####INDEX RANGE SCAN#    | CONTRACT_X_COUNTY_PK#    |     1 |    42 |#|     1 |
    | 229 |#### TABLE ACCESS BY INDEX ROWID      | HSD_SUMMARY_OUTPUT#      |     1 |    20 |#|     1 |
    |*230 |####  INDEX RANGE SCAN##  | HSD_SUMMARY_OUTPUT_INDX4#|     1 |#|#|     1 |
    |*231 |####INDEX RANGE SCAN##    | PK_HSD_NCB_OUTPUT1#      |     6 |    96 |#|     1 |
    |*232 |###    TABLE ACCESS BY INDEX ROWID#   | CONTRACT_X_PARTIAL_ZIPCODE     |     1 |    26 |#|     1 |
    |*233 |###     INDEX RANGE SCAN##      | IX5_CONTRACT_X_PARTIAL_ZIPCODE |     1 |#|#|     1 |
    |*234 |##      INDEX RANGE SCAN###     | IX1_HSD_SUMMARY_OUTPUT#  |     1 |    15 |#|     1 |
    | 235 |##     VIEW#####    |####    |     5 |    85 |#|  2152 |
    | 236 |##      SORT UNIQUE####   |####    |     5 |   262 |#|  2152 |
    | 237 |###UNION-ALL####    |####    |#|#|#|#|
    | 238 |### VIEW##### |####    |     4 |    68 |#|   203 |
    | 239 |###  SORT UNIQUE####|####    |     4 |   398 |#|   203 |
    | 240 |###   UNION-ALL#### |####    |#|#|#|#|
    |*241 |###    FILTER####   |####    |#|#|#|#|
    | 242 |###     SORT GROUP BY###  |####    |     1 |   107 |#|    62 |
    | 243 |###      NESTED LOOPS###  |####    |     1 |   107 |#|    13 |
    | 244 |####NESTED LOOPS### |####    |     1 |    65 |#|    12 |
    |*245 |#### INDEX FULL SCAN##    | HSD_SUMMARY_OUTPUT_INDX3#|    10 |   230 |#|     2 |
    |*246 |#### INDEX RANGE SCAN##   | CONTRACT_X_COUNTY_APP_ID_IDX   |     1 |    42 |#|     1 |
    |*247 |####INDEX RANGE SCAN##    | CONTRACT_X_COUNTY_PK#    |     1 |    42 |#|     1 |
    |*248 |###    FILTER####   |####    |#|#|#|#|
    | 249 |###     SORT GROUP BY###  |####    |     1 |   104 |#|    62 |
    | 250 |###      NESTED LOOPS###  |####    |     1 |   104 |#|    13 |
    | 251 |####NESTED LOOPS### |####    |     1 |    62 |#|    12 |
    |*252 |#### INDEX FULL SCAN##    | HSD_SUMMARY_OUTPUT_INDX3#|    10 |   230 |#|     2 |
    |*253 |#### TABLE ACCESS BY INDEX ROWID      | CONTRACT_X_PARTIAL_ZIPCODE     |     1 |    39 |#|     1 |
    |*254 |####  INDEX RANGE SCAN##  | CONTRACT_X_PAR_ZIP_APP_ID_IDX  |     1 |#|#|     1 |
    |*255 |####INDEX RANGE SCAN##    | CONTRACT_X_PARTIAL_ZIPCODE_PK  |     1 |    42 |#|     1 |
    |*256 |###    FILTER####   |####    |#|#|#|#|
    |*257 |###     FILTER####  |####    |#|#|#|#|
    | 258 |###      NESTED LOOPS###  |####    |     1 |    92 |#|     8 |
    | 259 |####NESTED LOOPS### |####    |     1 |    70 |#|     6 |
    | 260 |#### NESTED LOOPS###|####    |     1 |    61 |#|     5 |
    | 261 |####  NESTED LOOPS##      |####    |     1 |    50 |#|     4 |
    |*262 |####   TABLE ACCESS BY INDEX ROWID    | CONTRACT_INFORMATION#    |     1 |    25 |#|     3 |
    |*263 |####    INDEX RANGE SCAN##| IX2_CONTRACT_INFORMATION#|     1 |#|#|     2 |
    | 264 |####     SORT AGGREGATE## |####    |     1 |    22 |#|#|
    | 265 |####      FIRST ROW##     |####    |     1 |    22 |#|     1 |
    |*266 |#####INDEX RANGE SCAN (MIN/MAX) | CONTRACT_INFORMATION_PK# |     1 |    22 |#|     1 |
    |*267 |####   TABLE ACCESS BY INDEX ROWID    | CONTRACT_X_REGION##|     1 |    25 |#|     1 |
    |*268 |####    INDEX RANGE SCAN##| CONTRACT_X_REGION_PK#    |     1 |#|#|     1 |
    |*269 |####  INDEX RANGE SCAN##  | HSD_SUMMARY_OUTPUT_INDX4#|     1 |    11 |#|     1 |
    | 270 |#### TABLE ACCESS BY INDEX ROWID      | STATES###    |     1 |     9 |#|     1 |
    |*271 |####  INDEX RANGE SCAN##  | STATES_INDX2##     |     2 |#|#|     1 |
    |*272 |####TABLE ACCESS BY INDEX ROWID#| COUNTIES###  |     2 |    44 |#|     2 |
    |*273 |#### INDEX RANGE SCAN##   | COUNTIES_INDX_4##  |    54 |#|#|     1 |
    | 274 |###     SORT AGGREGATE### |####    |     1 |    25 |#|#|
    |*275 |###      TABLE ACCESS BY INDEX ROWID# | CONTRACT_X_REGION##|     1 |    25 |#|     1 |
    |*276 |####INDEX RANGE SCAN##    | IX1_CONTRACT_X_REGION#   |     1 |#|#|     1 |
    |*277 |###    FILTER####   |####    |#|#|#|#|
    |*278 |###     FILTER####  |####    |#|#|#|#|
    | 279 |###      NESTED LOOPS###  |####    |     1 |    95 |#|    18 |
    | 280 |####NESTED LOOPS### |####    |     1 |    73 |#|    16 |
    | 281 |#### NESTED LOOPS###|####    |     1 |    64 |#|    15 |
    | 282 |####  NESTED LOOPS##      |####    |     4 |   144 |#|    11 |
    |*283 |####   INDEX RANGE SCAN## | IX1_HSD_SUMMARY_OUTPUT#  |    10 |   110 |#|     1 |
    |*284 |####   TABLE ACCESS BY INDEX ROWID    | CONTRACT_X_REGION##|     1 |    25 |#|     1 |
    |*285 |####    INDEX RANGE SCAN##| CONTRACT_X_REGION_PK#    |     1 |#|#|     1 |
    |*286 |####  TABLE ACCESS BY INDEX ROWID     | CONTRACT_INFORMATION#    |     1 |    28 |#|     1 |
    |*287 |####   INDEX RANGE SCAN## | CONTRACT_INFORMATION_PK# |     1 |#|#|     1 |
    | 288 |####    SORT AGGREGATE##  |####    |     1 |    22 |#|#|
    | 289 |####     FIRST ROW##      |####    |     1 |    22 |#|     1 |
    |*290 |####      INDEX RANGE SCAN (MIN/MAX)  | CONTRACT_INFORMATION_PK# |     1 |    22 |#|     1 |
    | 291 |#### TABLE ACCESS BY INDEX ROWID      | STATES###    |     1 |     9 |#|     1 |
    |*292 |####  INDEX RANGE SCAN##  | STATES_INDX1##     |     1 |#|#|     1 |
    |*293 |####TABLE ACCESS BY INDEX ROWID#| COUNTIES###  |     2 |    44 |#|     2 |
    |*294 |#### INDEX RANGE SCAN##   | COUNTIES_INDX_4##  |    54 |#|#|     1 |
    | 295 |###     SORT AGGREGATE### |####    |     1 |    25 |#|#|
    |*296 |###      TABLE ACCESS BY INDEX ROWID# | CONTRACT_X_REGION##|     1 |    25 |#|     1 |
    |*297 |####INDEX RANGE SCAN##    | IX1_CONTRACT_X_REGION#   |     1 |#|#|     1 |
    | 298 |### INTERSECTION####|####    |#|#|#|#|
    | 299 |###  SORT UNIQUE####|####    |     1 |    97 |#|#|
    |*300 |###   FILTER####    |####    |#|#|#|#|
    | 301 |###    SORT GROUP BY###   |####    |     1 |    97 |#|  1822 |
    |*302 |###     HASH JOIN###      |####    |     7 |   679 |#|  1773 |
    |*303 |###      TABLE ACCESS BY INDEX ROWID# | CONTRACT_X_COUNTY##|  2357 | 98994 |#|   885 |
    |*304 |####INDEX RANGE SCAN##    | CONTRACT_X_COUNTY_INDX_6#|   148K|#|#|   157 |
    | 305 |###      NESTED LOOPS OUTER##   |####    |  2338 |   125K|#|   886 |
    |*306 |####TABLE ACCESS BY INDEX ROWID#| CONTRACT_X_COUNTY##|  2338 | 86506 |#|   885 |
    |*307 |#### INDEX RANGE SCAN##   | CONTRACT_X_COUNTY_INDX_6#|   148K|#|#|   157 |
    |*308 |####INDEX UNIQUE SCAN##   | CONTRACT_AREA_SUPP_INFO_PK     |     1 |    18 |#|     1 |
    | 309 |###  SORT UNIQUE####|####    |     1 |    97 |#|#|
    |*310 |###   FILTER####    |####    |#|#|#|#|
    | 311 |###    SORT GROUP BY###   |####    |     1 |    97 |#|   103 |
    | 312 |###     NESTED LOOPS###   |####    |     1 |    97 |#|    54 |
    | 313 |###      NESTED LOOPS OUTER##   |####    |    20 |  1100 |#|    34 |
    |*314 |####INDEX RANGE SCAN##    | IX1_CONTRACT_X_COUNTY#   |    20 |   740 |#|    33 |
    |*315 |####INDEX UNIQUE SCAN##   | CONTRACT_AREA_SUPP_INFO_PK     |     1 |    18 |#|     1 |
    |*316 |###      INDEX RANGE SCAN##     | CONTRACT_X_COUNTY_PK#    |     1 |    42 |#|     1 |
    |*317 |##    INDEX RANGE SCAN####| PK_HSD_NCB_OUTPUT1#      |     1 |#|#|     1 |
    | 318 |#VIEW#######  |####    |  1155 | 56595 |#|  3738 |
    |*319 |# HASH JOIN######   |####    |  1155 | 56595 |    10M|  3738 |
    |*320 |#  TABLE ACCESS FULL##### | HSD_NCB_OUTPUT##   |   304K|  7443K|#|  1071 |
    |*321 |#  TABLE ACCESS FULL##### | HSD_CALC_OUTPUT##  |   340K|  7986K|#|  2308 |
    | 322 |      VIEW PUSHED PREDICATE#####|####    |     1 |    49 |#|     2 |
    | 323 |#NESTED LOOPS###### |####    |     1 |    49 |#|     3 |
    | 324 |# TABLE ACCESS BY INDEX ROWID###      | HSD_NCB_OUTPUT##   |     1 |    25 |#|     2 |
    |*325 |#  INDEX UNIQUE SCAN##### | PK_HSD_NCB_OUTPUT1#      |     1 |#|#|     1 |
    | 326 |# TABLE ACCESS BY INDEX ROWID###      | HSD_CALC_OUTPUT##  |     1 |    24 |#|     1 |
    |*327 |#  INDEX UNIQUE SCAN##### | PK_HSD_ACC_CALC_OUTPUT1# |     1 |#|#|     1 |
    ---------------------------------------------------------------------------------------------------------------------------------------

  • Degraded performance after upgrading from 3.5.6 to 3.6.2

    It is really strange but kernel upgrade significantly affected on ffmpeg performance. I have server to make video transcoding of 11 DVB-S channels to h264 1.2Mbit rate and streaming in via http. Usually server works with no problem and even has idle about 15-20%. Transcoding with no problem.
    kernel 3.5.6:
    top - 09:31:14 up 15:59, 15 users, load average: 18.31, 11.51, 10.97
    Tasks: 128 total, 2 running, 126 sleeping, 0 stopped, 0 zombie
    %Cpu(s): 41.3 us, 1.2 sy, 43.4 ni, 13.7 id, 0.0 wa, 0.0 hi, 0.4 si, 0.0 st
    KiB Mem: 4012244 total, 1627896 used, 2384348 free, 6064 buffers
    KiB Swap: 4208896 total, 0 used, 4208896 free, 39972 cached
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    1286 root 20 0 880m 145m 6076 R 10.6 3.7 1:10.28 ffmpeg
    1283 root 20 0 1149m 158m 6080 S 9.5 4.0 0:51.29 ffmpeg
    1279 root 20 0 963m 160m 6076 S 9.4 4.1 1:15.47 ffmpeg
    808 root 20 0 979m 140m 6060 S 7.7 3.6 565:35.58 ffmpeg
    807 root 20 0 843m 133m 6040 S 7.7 3.4 551:19.23 ffmpeg
    797 root 20 0 852m 138m 6056 S 7.3 3.5 510:25.80 ffmpeg
    796 root 20 0 953m 113m 6056 S 7.0 2.9 454:18.05 ffmpeg
    809 root 20 0 916m 139m 6056 S 6.9 3.6 564:01.53 ffmpeg
    794 root 20 0 888m 112m 6056 S 6.8 2.9 462:33.01 ffmpeg
    795 root 20 0 953m 114m 6056 S 6.8 2.9 436:02.91 ffmpeg
    793 root 20 0 961m 122m 6072 S 6.2 3.1 624:25.06 ffmpeg
    785 root 20 0 16472 2132 984 S 0.1 0.1 1:32.40 screen
    29 root 20 0 0 0 0 S 0.0 0.0 0:56.75 kworker/6:0
    46 root 20 0 0 0 0 S 0.0 0.0 0:51.88 kworker/3:1
    1162 root 20 0 0 0 0 S 0.0 0.0 0:19.77 kworker/4:3
    With 3.6.2 load is the same but it is impossible to watch any channel -- errors and lags. I can see normal only one channel with one ffmpeg running, second ffmpeg on 3.6.2 did lags.
    After downgading kernel to 3.5.6 all works as its normal state. All 11 channels show normal pictures with no lags.
    Seems it is problem underground knocking ...

    ulke wrote:
    Recent kernels seem to have problems with CPU frequency scaling. For some people it doesn't scale down, for me, and maybe you, it sometimes doesn't scale up. You can monitor the CPU frequency by running:
    $ watch grep \"cpu MHz\" /proc/cpuinfo
    If scaling is the source of your problem, you can switch to the performance governor, or try to tweak the ondemand governor.
    Thanks. I'll try may be. Ehhh ... should wait for 3.6.6 or even 3.6.16 for server :-).

Maybe you are looking for

  • IPod Nano 8gb problems with iTunes/iMac

    Bought a brand new iPod Nano 8gb last night. I am trying to use it on an iMac G4 1 gigahertz with OSX 10.4. This computer is not online. I downloaded itunes 7.0.1 from a neighbors computer and installed it on my imac and it seems to work fine. I can

  • Satellite A - CD/DVD drive does only read CD's

    I'm abit confused at this situation. My CD/DVD drive reads CD's but does not read DVD's. I dont know if I have to reinstall the driver for the CD/DVD or does it need replacing. Please can someone help.

  • My iphone 5 is not showing in my devices and wont sync with my mac

    I have a new iphone 5 it is up and working but when plugged into my mac doesn't show up in devices and will not sync

  • Install jre 32bit on 64bit system with error

    Hello, i try to install "jre-7u51-windows-i586.exe" (32bit) via CA IT Client Manager (Version 12.5) on serveral machines (64bit), OS MS Vista. Error: .... cannot start or run due to incompatibity  with 64-bit versions of Windows. Please contact the s

  • DIY HD replacement iMac 2011

    I was about to purchase an new HD for my 2011 27" iMac to replace the existing one since I started to notice errors and performance issues. Mainly PM kernel: disk0s2: I/O error. I came upon sites indicating fan issues with generic (non Apple) SSD's o