Improve performance when using lots of left join

when i run this query, it is taking *27 minutes* to execute. all keys have index. please help me to improve performance. i am using 11g.
select distinct com.m1co as CO_ID,
fsr.policy_number as POL_ID,
com.M1AGNM as AGNCY_ID,
cr.agent_code as AGT_ID,
P.full_name as agent_name,
ia.status_description as STS_CD,
to_char(ia.bound_date, 'MM/DD/YYYY') as POL_INFC_DT,
(fchgmm||'/'||fchgdd||'/'||fchgyy) as PAY_UP_DT ,
(mcpdtm||'/'||mcpdtd||'/'||mcpdty) as pay_to_dt,
(fexpmm||'/'||fexpdd||'/'||fexpyy) as MATURE_DT,
ia.BILLING_FREQUENCY as PAY_MODE_CD,
casc.MCPYCD as PAY_METHOD_CD,
casc.MCPRMM as MODAL_PREM_AMT,
casc.MCCRCD as POL_CUR,
casc.MCNOPT as NFO_CD,
cas.FINSTP as LINE_OF_BUSS,
(MCPDTM||'/'||MCPDTD||'/'||MCPDTY) as BILL_TO_DT,
com.M1LOCA as COLL_OFF,
to_char(ia.bound_date, 'MM/DD/YYYY') as DELIVERY_DT,
P.FULL_NAME as Serv_AGENT_NAME,
casm.MWAGTN as SERV_AGT_CD,
casc.MCNOPT as NFO_RULE,
ia.STATUS_DESCRIPTION as POL_CSTAT_REASN_CD,
SUBSTR(datesplit5(datesub),1,10) as APP_RECV_DT,
to_char(ia.bound_date, 'MM/DD/YYYY') as ISSUE_DT,
ia.SUM_ASSURED as CVG_FACE_AMT,
p.IDENTITY_CARD_NUMBER as INSRD_CLI_CD
FROM financial_services_role fsr
left join channel_role cr on fsr.role_player_id=cr.role_player_id
left join person p on (fsr.role_player_id=p.role_player_id and FSR.TYPE_DESCRIPTION IN ('AG','AGT'))
left join ext_lsp_comagtm1 com on cr.agent_code=com.m1agno
left join individual_agreement ia on fsr.policy_number =
DECODE(ia.Business_Key_Contract_Number, NULL, ia.Business_Key_Policy_Number,ia.Business_Key_Contract_Number)
left join EXT_LSP_CASCNTRM casc on (fsr.policy_number = casc.MCCNTR)
left join ext_lsp_casbene cas on (fsr.policy_number = cas.fpolno and fbrcd = 0 )
left join ext_lsp_casmwagt casm on (fsr.policy_number = casm.mwpoln and com.m1agnm = 'TAN')
left join cdmtgt.EXT_LA_PTRNPF on (chdrnum = fsr.policy_number and
BATCTRCDE = 'T600')
WHERE com.m1co = 'IL';
Thank you
Edited by: 1000228 on Jun 5, 2013 10:36 AM

HOW To Make TUNING request
SQL and PL/SQL FAQ
SELECT DISTINCT com.m1co                             AS CO_ID,
                fsr.policy_number                    AS POL_ID,
                com.m1agnm                           AS AGNCY_ID,
                cr.agent_code                        AS AGT_ID,
                ' '                                  AS AGNCY_ID_2,
                ' '                                  AS AGT_ID_2,
                ' '                                  AS AGT_ID_2_NAME,
                P.full_name                          AS agent_name,
                ia.status_description                AS STS_CD,
                To_char(ia.bound_date, 'MM/DD/YYYY') AS POL_INFC_DT,
                ( fchgmm
                  ||'/'
                  ||fchgdd
                  ||'/'
                  ||fchgyy )                         AS PAY_UP_DT,
                ( mcpdtm
                  ||'/'
                  ||mcpdtd
                  ||'/'
                  ||mcpdty )                         AS pay_to_dt,
                ( fexpmm
                  ||'/'
                  ||fexpdd
                  ||'/'
                  ||fexpyy )                         AS MATURE_DT,
                ia.billing_frequency                 AS PAY_MODE_CD,
                casc.mcpycd                          AS PAY_METHOD_CD,
                casc.mcprmm                          AS MODAL_PREM_AMT,
                casc.mccrcd                          AS POL_CUR,
                casc.mcnopt                          AS NFO_CD,
                cas.finstp                           AS LINE_OF_BUSS,
                ' '                                  AS REGLR_OR_SCHEDL_TOPUP,
                ' '                                  AS POLICY_LAPSED_DT,
                ( mcpdtm
                  ||'/'
                  ||mcpdtd
                  ||'/'
                  ||mcpdty )                         AS BILL_TO_DT,
                com.m1loca                           AS COLL_OFF,
                To_char(ia.bound_date, 'MM/DD/YYYY') AS DELIVERY_DT,
                P.full_name                          AS Serv_AGENT_NAME,
                casm.mwagtn                          AS SERV_AGT_CD,
                casc.mcnopt                          AS NFO_RULE,
                ia.status_description                AS POL_CSTAT_REASN_CD,
                Substr(Datesplit5(datesub), 1, 10)   AS APP_RECV_DT,
                To_char(ia.bound_date, 'MM/DD/YYYY') AS ISSUE_DT,
                ia.sum_assured                       AS CVG_FACE_AMT,
                '0'                                  AS BASE_CVG_NUM,
                p.identity_card_number               AS INSRD_CLI_CD
FROM   financial_services_role fsr
       left join channel_role cr
              ON fsr.role_player_id = cr.role_player_id
       left join person p
              ON ( fsr.role_player_id = p.role_player_id
                   AND FSR.type_description IN ( 'AG', 'AGT' ) )
       left join ext_lsp_comagtm1 com
              ON cr.agent_code = com.m1agno
       left join individual_agreement ia
              ON fsr.policy_number = Decode(ia.business_key_contract_number,
                                     NULL,
       ia.business_key_policy_number,
                                     ia.business_key_contract_number)
       left join ext_lsp_cascntrm casc
              ON ( fsr.policy_number = casc.mccntr )
       left join ext_lsp_casbene cas
              ON ( fsr.policy_number = cas.fpolno
                   AND fbrcd = 0 )
       left join ext_lsp_casmwagt casm
              ON ( fsr.policy_number = casm.mwpoln
                   AND com.m1agnm = 'TAN' )
       left join cdmtgt.ext_la_ptrnpf
              ON ( chdrnum = fsr.policy_number
                   AND batctrcde = 'T600' )
WHERE  com.m1co = 'IL';

Similar Messages

  • Improving performance when using LineStripArray?

    I'm rendering approximately 680 LineStripArrays to represent an airport on a situation display. I read the data from a DXF file and I imagine I can strip that down by removing parts of the airport I don't want to show.
    However, performance is poor - I'm probably hitting 50fps when I'm barely rendering anything. Apart from not displaying some LineStripArrays, what can I do to improve performance? Should I merge some LineStripArrays? Is there another geometry class I should use?
    My code is:
                   // This array will hold the vertices.
                   float[] vertices = new float[count*3];
                   // Create the colour.
                   Color3f colour = new Color3f(1.0f,1.0f, 1.0f);
                   // iterate over all vertex of the polyline
                   for (int i = 0; i < count; i++) {                    
                        vertices[(i*3)+0] = (float)vertex.getX();
                        vertices[(i*3)+1] = (float)vertex.getY();
                        vertices[(i*3)+2] = (float)vertex.getZ();
                   }And then:
    layerData = new LineStripArray(count, LineArray.COORDINATES, strip_counts);
    layerData.setCoordinates(0, vertices);Thanks
    Edited by: BobCrivens on Sep 18, 2008 7:39 AM

    Yes, it will cause performance issues.  Whether you notice it or not may be a different story.
    LabVIEW drawing engine starts at the bottom layer and works its way up.  So, it has to redraw the image and then redraw the control when you update the control/indicator.
    It's been a while since I benchmarked this on a project, but in LabVIEW 6.1, I looked into why my tests ran so slow, and saw a 10-15% decrease in test time by removing the background decorations I used to make the window pretty.  If I didn't show the GUI feedback for the test at all (no GUI windows for each test), I saw a 30% decrease in test time.
    You will also find that better video cards will have a positive effect on this, as they redraw the screen faster.  In the same benchmark, I was able to outperform the early PXI controllers with a slower PC because NI was using a lower end video chip for their onboard graphics.

  • How can I improve performance when scopes are open?

    How can I improve performance when scopes are open?
    When Color correcting, performance severely lags, stalls, freezes!
    Nothing to complex...simple 3 way color corrector, occasional curves filters.
    I am constantly waiting for the timeline to update as I move around....sometimes as long as a minute or so.
    I'm on brand new 2.7 Ghz 12-Core MacPro with 64 GB of RAM
    Thanks in advance.
    Jay

    http://forums.adobe.com/thread/1369260?tstart=0

  • Poor performance when using kde desktop effect

    Hey,
    I'm having trouble when using kde effet (system settings -> desktop -> desktop effects).
    I have a dual core E5200 3 ghz, 2 GB memory pc8500 and an HD4850 using fglrx driver, but I got incredible bad performance when using desktop effect and watching video, I can barely watch a 800x600 video in full screen mode without having bad performance, X getting up to 40% cpu usage.
    Its really like my graphic card isnt handling the rendering stuff but 3D acceleration is working, I can play 3D game without problem so far (as long as the deskstop effect arent enabled cause the cpu have like a hard time handling both for recent game)
    So I guess its some trouble with 2D acceleration or something like that, I read that some people had such issue, but I didnt figure a way to fix it.
    Here is my xorg.conf, in case something is wrong with it :
    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "aticonfig-Screen[0]-0" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    EndSection
    Section "Files"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/TTF"
    FontPath "/usr/share/fonts/Type1"
    EndSection
    Section "Module"
    Load "dri2"
    Load "extmod"
    Load "dbe"
    Load "record"
    Load "glx"
    Load "dri"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection
    Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5 6 7"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Monitor Vendor"
    ModelName "Monitor Model"
    EndSection
    Section "Monitor"
    Identifier "aticonfig-Monitor[0]-0"
    Option "VendorName" "ATI Proprietary Driver"
    Option "ModelName" "Generic Autodetecting Monitor"
    Option "DPMS" "true"
    EndSection
    Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
    ### [arg]: arg optional
    #Option "ShadowFB" # [<bool>]
    #Option "DefaultRefresh" # [<bool>]
    #Option "ModeSetClearScreen" # [<bool>]
    Identifier "Card0"
    Driver "vesa"
    VendorName "ATI Technologies Inc"
    BoardName "RV770 [Radeon HD 4850]"
    BusID "PCI:8:0:0"
    EndSection
    Section "Device"
    Identifier "aticonfig-Device[0]-0"
    Driver "fglrx"
    BusID "PCI:8:0:0"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    SubSection "Display"
    Viewport 0 0
    Depth 1
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 4
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 8
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 15
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 16
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 24
    EndSubSection
    EndSection
    Section "Screen"
    Identifier "aticonfig-Screen[0]-0"
    Device "aticonfig-Device[0]-0"
    Monitor "aticonfig-Monitor[0]-0"
    DefaultDepth 24
    SubSection "Display"
    Viewport 0 0
    Depth 24
    EndSubSection
    EndSection
    Thank you for any help.

    Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
    ### [arg]: arg optional
    #Option "ShadowFB" # [<bool>]
    #Option "DefaultRefresh" # [<bool>]
    #Option "ModeSetClearScreen" # [<bool>]
    Identifier "Card0"
    Driver "vesa"
    VendorName "ATI Technologies Inc"
    BoardName "RV770 [Radeon HD 4850]"
    BusID "PCI:8:0:0"
    EndSection
    and
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Monitor Vendor"
    ModelName "Monitor Model"
    EndSection
    I see no reason for those to be there.
    make a backup of your xorg.conf and remove / comment those lines.

  • How to improve performance when there are many TextBlocks in ItemsControl items?

       Hi,
       I'm trying to find a way to improve performance for a situation when there is an ItemsControl using UI and Data virtualization and each item on that control has 36 TextBlocks. Basically the item is a single string. There are so many TextBlocks
    to allow assigning different brushes to different parts of the string. Performance of this construction is terrible. I have 37 items visible on the screen and if I try to scroll up or down it scrolls into the black space and then it takes a second or two to
    show the items.
       I tried different things. For example, the most successful performance-wise was to replace TextBlocks with Borders and then draw bitmaps. In other words, I prepared 127 bitmaps for each character (I need ASCII only) and then I used those bitmaps
    to set Border.Backgrounds. It improved performance about 1.5 - 2 times but it consumed much more memory (which is not surprising, of course). Required amount of memory is so big that it throws OutOfMemoryException on 512MB emulator but works on 1GB. As a result
    I don't thing it is a good solution.
       Another thing that worked perfect is to replace 36 TextBlocks with only 6 TextBlocks. In this case the performance improvement is about 5 - 10 times but I lose the ability to set different colors to different parts of the string. It seems that
    the performance degrades dramatically with the increase of number of TextBlocks. Is there another technique to draw strings where literally each character can be of different color with decent performance?
    Thank you
    Alex

       Using Runs inside TextBlocks gives approximately the same improvement as using bitmaps 1.5 - 2 times faster but it is not even close to the case with just a couple of TextBlocks in the ItemsControl item. Any other ideas?
    Alex

  • Is anyone able to explain really poor performance when using 'If Exists'?

    Hello all.  We've recently had a performance spike when using the 'if exists' construct, which is a construct that we use through much of our code.  The problem is, it appears illogical since if can be removed via a tiny modification that does
    not change the core code.
    I can demonstrate  
    This is the (simplified) format of the base original code.  It's purpose is to identify when a column value has changed comparing to a main table and a complex view
    select 1 from MainTable m
    inner join ComplexView v on m.col2 = v.col2
    where m.col3 <> v.col3
    This is doing a table scan, however the table only has 17000 rows while the view only has 7000 rows.  The sql executes in approximately 3 seconds.
    However if we add the 'If Exists' construct around the original query, like such:
    if exists (
    select 1 from MainTable m
    inner join ComplexView v on m.col2 = v.col2
    where m.col3 <> v.col3
    print 1
    The sql now takes over 2 minutes to run.  Note that the core sql is unchanged.  All I have done is wrap it with 'If Exists'
    I can't fathom why the if exists construct is taking so much longer, especially since the code code is unchanged, however more importantly I would like to understand why since we commonly use this type of syntax.
    Any advice would be greatly appreciated

    OK, that's interesting.  Adding the top 1 clause greatly affects the performance (in a bad way).
    The original query (as below) still runs in a few seconds.
    select 1 from MainTable m
    inner join ComplexView v on m.col2 = v.col2
    where m.col3 <> v.col3
    The 'Top 1' query (as below) takes almost 2 minutes however.  It's exactly the same query, but with 'top 1' added to it.
    select top 1 1 from MainTable m
    inner join ComplexView v on m.col2 = v.col2
    where m.col3 <> v.col3
    I suspect that the top 1 is performing a very similar operation to the exists, in that it is 'supposed' to exit as soon as it finds a single row that satisfies it's results.
    It's still not really any closer to making me understand what is causing the issue however.

  • Terrible performance when using lightroom

    I have recently downloaded Photoshop CC, Bridge and Lightroom 5.2 64 bit and am suffering with terrible performance issues.  Initially both photoshop and lightroom worked really well but after only a couple of days and only a few hundred images being imported into lightroom I can no longer use lightroom. 
    The computer works fine prior to me opening lightroom, I can use all programs, open files and folders with no issue.  However as soon as I have opened Lightroom then the whole system grinds to a hault.  Lightroom is unresponsive and the rest of the system practically freezes, it took over an hour to open a folder containing roughly 100 JPEGs.  When closing the laptop I have to manually close background programs because they are also unresponsive.
    The computer has 6Gb RAM, 500GB HDD and a dual core processor so there is ample power to cope with this program on my system.
    Could you please reccomend a resolution to these performance issuse.

    The Adobe website has a bunch of recommendations for improving performance. Make sure you have your cache sizes right, enough free space on your drive, make sure you have the catalog and related files on the same and fastest disk. Check your preferences to make sure you're rendering appropriately sized previews. If LR is trying to generate previews that you  might not have, start Lightroom before you go to bed, let it do its thing (or force it to recreate the previews), and see how it looks in the morning. That's probably at least a good starting point. You should also be able to use your task manager or equivalent to confirm that it's Lightroom.

  • Performance when using bind variables

    I'm trying to show myself that bind variables improve performance (I believe it, I just want to see it).
    I've created a simple table of 100,000 records each row a single column of type integer. I populate it with a number between 1 and 100,000
    Now, with a JAVA program I delete 2,000 of the records by performing a loop and using the loop counter in my where predicate.
    My first JAVA program runs without using bind variables as follows:
    loop
    stmt.executeUpdate("delete from nobind_test where id = " + i);
    end loop
    My second JAVA program uses bind variables as follows:
    pstmt = conn.prepareStatement("delete from bind_test where id = ?");
    loop
    pstmt.setString(1, String.valueof(i));
    rs = pstmt.executeQuery();
    end loop;
    Monitoring of v$SQL shows that program one doesn't use bind variables, and program two does use bind variables.
    The trouble is that the program that does not use bind variables runs faster than the bind variable program.
    Can anyone tell me why this would be? Is my test too simple?
    Thanks.

    [email protected] wrote:
    I'm trying to show myself that bind variables improve performance (I believe it, I just want to see it).
    I've created a simple table of 100,000 records each row a single column of type integer. I populate it with a number between 1 and 100,000
    Now, with a JAVA program I delete 2,000 of the records by performing a loop and using the loop counter in my where predicate.
    Monitoring of v$SQL shows that program one doesn't use bind variables, and program two does use bind variables.
    The trouble is that the program that does not use bind variables runs faster than the bind variable program.
    Can anyone tell me why this would be? Is my test too simple?
    The point is that you have to find out where your test is spending most of the time.
    If you've just populated a table with 100,000 records and then start to delete randomly 2,000 of them, the database has to perform a full table scan for each of the records to be deleted.
    So probably most of the time is spent scanning the table over and over again, although most of blocks might already be in your database buffer cache.
    The difference between the hard parse and the soft parse of such a simple statement might be negligible compared to effort it takes to fulfill each delete execution.
    You might want to change the setup of your test: Add a primary key constraint to your test table and delete the rows using this primary key as predicate. Then the time it takes to locate the row to delete should be negligible compared to the hard parse / soft parse difference.
    You probably need to increase your iteration count because deleting 2,000 records this way probably takes too short and introduces measuring issues. Try to delete more rows, then you should be able to spot a significant and constant difference between the two approaches.
    In order to prevent any performance issues from a potentially degenerated index due to numerous DML activities, you could also just change your test case to query for a particular column of the row corresponding to your predicate rather than deleting it.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Poor performance when using drop down box on web report

    We are using dropdown box functionality in web reporting to allow easy selection of characteristics values. We have 4 dropdown boxes
    that represents Region, Area, Country and division.
    We need to use booked_values = 'Q' to show only relevant values for selection in the dropdown. However the issue is takes a long time for results to appear
    on the template. Read from Fact table is quick but process of deriving drop down values is very slow.
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="DROPDOWNBOX_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_FILTER_DDOWN"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="BORDER_STYLE" value="BORDER"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="IOBJNM" value="ZPC_ORG14"/>
             <param name="BOOKED_VALUES" value="Q"/>
             <param name="TARGET_DATA_PROVIDER_1" value="DATAPROVIDER_1"/>
             ITEM:            DROPDOWNBOX_1
    </object>
    Do you have any suggestions on how to improve performance on drop down?
    Thanks, Jay

    Dear Jayant Dixit,
    1) If the values in the drop down box....are NOT dependent on user selection...then webserver can send them along with the first page....and cache them on client m/c...for multiple client/server dialogs....
    2) If the values are changing based on what the user selected from a previous input......then...you need to do some research on how SAP Webserver could optimize the "network traffic"......For example: a) Apache webserver has a module that compresses the content on the webserver side and then send to the client...b)A Client browser plugin decompresses the received packet and displays appropriately....
    3) We may need to research the latest SAP webserver capabilities....
    Good luck, BB

  • Optimizing EtherCAT Performance when using Scan Engine

    Hello everyone,
    This week I have been researching and learning about the limitations of the LabVIEW's Scan Engine. Our system is an EtherCAT (cRIO 9074) with two slaves (NI 9144). We have four 9235s, two 9237s and two 9239 modules per chassis. That means we have a total of 144 channels. I have read that a conservative estimation for each scan is 10 usec. This means with our set up, assuming we only scan it would take 1.44 msec which would yield roughly a rate of 694 Hz. I know that when using a shared variable, the biggest bottle neck is transmitting the data. For instance, if you scan at 100 Hz, it'll be difficult to transmit that quickly, so it's best to send packets of scans (which you can see in my code).
    With all of that said, I'm having difficulties scanning any faster than 125 Hz without railing out my CPU. I can record at 125 Hz at 96% of the CPU usage but if I go down to 100 Hz, I'm at 80%. I noticed that the biggest factor of performance comes when I change my top loop's, the scan loop, period. Scanning every period is much much more demanding than every other. I have also adjusted the scan period on the EtherCAT's preferences and I have the same performance issues. I have also tried varying the transmission frequency(bottom loop), and this doesn't affect the performance at all.
    Basically, I have a few questions:
    1. What frequency can I reasonably expect to obtain from the EtherCAT system using the Scan Engine with 144 channels?
    2. What percent of the CPU should be used when running a program (just because it can do 100%, I know you shouldn't go for the max. Is 80% appropriate? Is 90% too high?)
    3.Could you look through my code and see if I have any huge issues? Does my transmission loop need to be a timed structure? I know that it's not as important to transmit as it is to scan, so if the queue doesn't get sent, it's not a big deal. This is my first time dealing with a real time system, so I wouldn't be surprised if that was the case.
    I have looked through almost every guide I could find on using the scan engine and programming the cRIO (that's how I learned the importance of synchronizing the timing to the scan engine and other useful facts) and haven't really found a definitive answer. I would appreciate any help on this subject.
    P.S. I attached my scan/transmit loop, the host program and the VI where I get all of the shared variables (I use the same one three times to prevent 144 shared variables from being on the screen at the same time).
    Thanks,
    Seth
    Attachments:
    target - multi rate - variables - fileIO.vi ‏61 KB
    Get Strain Values.vi ‏24 KB
    Chasis 1 (Master).vi ‏85 KB

    Hi,
    It looks like you are using a 9074 chassis and two 9144 chassis, all three full with Modules and you are trying to read all the IO channels in one scan?
    First of all, if you set your scan engine speed for the controller (9074), then you have to synchronize your Timed Loop to the Scan Engine and not to use a different timebase as you do in your scan VI.
    Second the best performance can be achieved with I/O variables, not shared variables and you should make sure to  not allocate memory in your timed Loop.  memory will be allocated if an input of a variable is not connected, like the error cluster for example or if you create Arrays from scratch as you do in your scan VI.
    If you resolve all these Issues you can time the code inside your Loop to see how long it really takes and adjust your scan time accordingly.  The 9074 does not have that much power so you should not expect us timing. 500 Hz is probably a good estimate for the max. Performance for 144 channels and depending on how much time the additional microstrain calculation takes.
    The ECAT driver brings examples which show how to program these kinds of Apps. Another way of avoiding the variables would be the programmatic approach using the variable API.
    DirkW

  • Poor Performance when using Question Pooling

    I'm wondering if anyone else out there is experiencing
    Captivate running very slow when using question pooling. We have
    about 195 questions with some using screenshots in jpeg format.
    By viewing the Windows Task Manager, CP is using anywhere
    between 130 to 160 K worth of memory. What is going on here? It's
    hammering the system pretty hard. It takes a large effort just to
    reposition the screenshot or even move a distractor.
    I'm running this on a 3.20GHz machine with 3GB of RAM.
    Any Captivate Gurus out there care to tackle this one?
    Help.

    MtnBiker1966,
    I have noticed the same problem. I only have 60 slides with
    43 questions and the Question Pool appears to be a big drain on
    performance. Changing the buttons from Continue to Go to next slide
    helped a little, but performance still drags compared to not using
    a question pool. I even tried reducing the number of question
    pools, but that did not affect the performance any. The search
    continues.
    Darin

  • CS6 Interface is unresponsive and really slow when using lots of layers on OSX 10.8

    I have a simple project, using lots of layers, but no effects. It takes more than a minute for the project to open, after which the interface becomes slow and unresponsive and doing anything in general is a pain.
    I've tried changing settings relating to multi-processing. Currently I have 1.5 GB assigned to each core and it tells me it can use 7 cores as a result. I've assigned 13 out of the 16GB or RAM I have for after effects. Caching is also enabled.
    The only thing I can think of is I can't enable the GPU for rendering as I have a NVIDIA GeForce GT 650M with 512M of VRAM. Is this the problem, or is there something else I can try/do differently?

    MP is not going to help. Reset your preferences to the defaults. Make sure AE is up to date. There have been several bug fixes. Give that a try. If it's still slow please tell us what you are using as footage and give us some details about the size of your comp. Some footage is harder to interpret than other. One last question, what is lot's of layers? 15, 150, 1500?

  • How will the query improve performance when we use hint index_ss

    hi,
    I got a SQLquery from our Reports team. initially when I ran the query it took long time and I tuned the query using SQL TOAD optimizer ..I ran the tuned query and it fetched the rows faster than the last one. I observed that a new Hint was added to that query. Index_ss+ > can some explain me how this index_ss increase the performance with an example

    As always the online documentation (at http://tahiti.oracle.com) comes with the answer.
    Sadly you need an extra pair of voluntary fingers to search and read it.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements006.htm#SQLRF50415
    Sybrand Bakker
    Senior Oracle DBA

  • Improve dashboard performance when using QAAWS

    Initially we created an Xcelsius dashboard with 3 tabs, but the response time was so slow the dashboard was split into 3. Each dashboard uses QAAWS to retrieve data from the Business Objects Universe and there are 15, 21 and 28 queries for the respective dashboards. Consequently the initialisation time is quite significant and the refreshing of graphs when a parameter is changed is longer than we would like.
    Other than the obvious solution of removing some of the graphs or dividing the dashboards once again, is there something else we can try to improve the response times on the dashboards?
    Regards
    Jason

    Jason,
    This may not apply to your dashboard, depending on the nature of the data you're bringing back, but I try to minimize the number of separate queries by combining all the ones with the same 'shape' into one query.  For example, if you have several queries bringing back 12 rows - one for each of the past 12 months, you can combine them into a single query with multiple columns.  You can then make use of Excel functions such as VLookup to pick out the particular columns needed for displaying each chart.  You can also click on the 'row' line in the data manager to outline the entire area being brought back, rather than having to do each column individually.
    Again, this may not be applicable for your needs, but I've also found that I could eliminate using query parameters by bringing back a larger amount of data into the spreadsheet in the initial load and then using the Excel functions to pick up the data being requested in the user controls for displaying in the charts.  Using that monthly example above, for instance, you could bring back several years worth of data (at a cost of only 12 rows / year in the spreadsheet), and then use the lookup functions to bring up the year requested in a user control.
    Hope those ideas help,
    Peter

  • Decreased Battery Performance when using SL. Apple states I am alone..

    This thread is mainly aimed at people that are using a mid 2009 unibody MacBook Pro 13" or upwards that came pre-installed with Leopard. Since upgrading to Snow leopard have you noticed a significant decrease in how long the battery lasts while using the machine in the same fashion?
    Am I alone? I first reported this issue to the Dutch customer service team back in October 2009 and since then have fought it all the way to make Apple admit that there is a problem with a minority of customers. To this day according to executive customer relations, I am the only person who has reported this issue to them. I find this hard to believe as there is a mass of information/threads/blogs etc on the internet with many people complaining about the same issue.
    The following is an email I sent to the [email protected] email as a last resort.
    Dear Steve,
    I am writing to you as a last resort hoping that my complaint will be dealt with professionally as I have actually given up all hope with the Apple customer service. I do not expect that you will personally read this letter but I just trust that someone will care and pass this to someone that will treat my complaint seriously as I really am losing all faith with Apple.
    I purchased a brand new Macbook Pro 13" mid 2009 model at the end of June 2009. Around 3 weeks after I purchased the machine I received a message from Apple stating that I was eligible for a copy of Snow Leopard as it was compatible with my machine and because I had just purchased a new Mac. I upgraded the Mac to Snow Leopard without any issues. It wasn't until a few weeks later that I noticed a massive reduction in battery performance. When I ran the machine on Leopard I would easily get the advertised 7 hour battery life while doing basic web browsing with all the battery settings set to the Mac default recommended settings. On Snow Leopard I would not get anything more than 4 hours completing the same tasks.
    I contacted Apple about this and was provided with the following reference number XXXXXXXXX I was basically told that I should monitor what I was doing etc and try using the screen on the lowest setting to see if this would improve the performance, it did not. I am a busy man and work in graphic design so unfortunately I put up with the battery issue until my Hard Drive decided to die in April. I contacted Apple again about this and was again provided with a reference number XXXXXXXXXX this time I was asked to do various steps to help fix the machine which did not work. Eventually I had the machine booked in for repair. When the machine was booked in for repair I also stated that I would like the battery issue addressed once and for all as I still only get around 4 hours charge. I was told this would be looked into. After 2 weeks of having no machine (and losing out on work) I received my Mac back with a new Hard drive installed as the old one was corrupted. I asked the Apple employee if my battery had been addressed and it had not. I refused to except my machine back as the battery issue was not resolved. After another 2 weeks of not having my Mac (more loss of work on my account) I received it back this time a new battery and motherboard had been installed.
    I returned to my office and reinstalled Snow Leopard, my Adobe Master Collection and charged to 100% I then tested the machine on battery. Again I received no more than 4 hours using BELOW recommended Mac battery settings. I contacted Apple again by telephone (another 0900 number call at my expense) and was messed around left right and centre. The employee on the telephone did not know what to do so transferred me to one of the Mac level 2 agents. I have never been spoken to so rudely and was even told that the only way I could expect 7 hours battery life from a MacBook Pro 2009 model is to use it with the lid closed. Ridiculous hey? I was also even told by one of the previous customer service agents that I could try using the machine with the battery disconnected. Even more ridiculous considering it is a unibody model.
    At this point I started doing research on the issue and found that I was far from alone with the battery issue. I have found numerous people suffering from the same issue. Below are a few links containing the same issue.
    http://discussions.apple.com/thread.jspa?messageID=10337524&#10337524
    http://discussions.apple.com/thread.jspa?messageID=11365892&#11365892
    http://forums.cnet.com/5208-21565_102-0.html?threadID=357366
    At this point I decided to try something different, something that was not recommended or mentioned by any Apple employee, sales or technical. I decided to reformat the HD and install Leopard back on the on the machine. I then completed a battery test and low and behold my 7 hours of battery life were fully back. I think this can safely say that the issue is clearly with the OSX and not the hardware.
    I then contacted Apple customer service by phone (more 0900 numbers at my expense) I spoke to a senior Applecare advisor called XXXXX XXXXXXXX and explained my issue in full. I told xxxxxxx that I wanted this matter looking into and that I wanted a machine that would give me what is advertised using Snow Leopard, as know where on the Apple site or in the Snow Leopard documentation does it state ' Expect to lose 3 hours '
    I provided xxxxxxxx with a system info file and he sent it the Apple engineering team. A week went by and I received an email from him with the report from engineering. Engineering basically blamed it ALL on 3rd party applications, they even blamed it on the weather widget stating that it is constantly updating and will drain power. My remote access software was also blamed which was not even running in the background.
    1: The weather widget updates when you select it not constantly.
    2: The weather widget is by DEFAULT installed on a machine so thus would be classed as an Apple product in my opinion.
    That evening I decided to reformat my HD and reinstall Snow Leopard. This time I installed ONLY Apple software updates and nothing else. I then tested the battery again (getting very boring now) using the same settings as previous tests. This time I managed to have 4 hrs and 15 mins. Just 15 minutes more than what I had previously had. I then contacted xxxxxxx again and provided him with another system information file from the clean install. I explained that I had tested this with just the airport on and basic web browsing on various sites (my exact words) Another week went by and I received a call from xxxxxxx with his report from engineering. He said that Engineering wanted to know if I had tested this with basic web browsing or sat on Youtube or other flash based video streaming sites for 4 hours as this could reduce the battery life.
    As you could imagine I was furious. I repeated myself to xxxxxxx about my tests and was told that he would go back to engineering. I received another call from xxxxxxx stating that engineering are looking into it. I asked how long it would take for an answer on this and we agreed on a 2 week time frame. It is now over 2 weeks and I have sent 2 emails to xxxxxx and still have not received a reply.
    This issue has been going on since October 2009 when I first reported it. We are now in July 2010 and I am still suffering with this, as you can imaging this is unacceptable and not what one would expect from a company like Apple. My complaints summarized are below, I believe the obvious speak for themselves.
    1: There is no disclaimer on the Apple site stating that Snow Leopard will decrease the performance of a battery on a machine that did not come preinstalled with Snow Leopard. Neither is this information provided on the installation PDF instructions that come with the Snow Leopard disc.
    2: If there were such a disclaimer on the Apple site then why would I have my battery and motherboard replaced by the Apple repair team when there was clearly nothing wrong with them in the first place. Why was I never told this by any agent on the phone or in the Mac store? The answer seems clearly that this information is not available to the public or to Apple staff which is a big waste or my time as well as theirs.
    3: I have missed out on work because of having my Mac in for repair for a total of 4 weeks. As mentioned above there was clearly no need to have had the battery or motherboard replaced.
    4: I have spent money calling the 0900 numbers on numerous occasions simply getting passed around from Apple employee to Apple employee and still have no answer to my problem.
    5: I have wasted so much of my own time clean erasing my hard drive including zero out of sectors and reinstalling operating systems, not to mention other software and Apple updates. All of this comes to many hours of total wasted time at my expense when I could have been working.
    Where we stand now is that I am on the verge of taking legal proceedings with the Dutch Consumentenbond as this machine is not suitable to run with the Snow Leopard OSX when Apple advertise that it is.
    I expect either a full refund of my MacBook Pro 13" mid 2009 or an exchange for a Macbook Pro 13" that comes with Snow Leopard preinstalled with the disc in the box. I also expect to be compensated for my loss of time, money I have spent on the phone to Apple and the loss of work while the machine was in for unnecessary repair.
    I am really at the end of my patience with this issue and feel that I have been much more than fair with my reports, honesty and patience.
    I trust to hear from somebody soon regarding this issue so that we can finally put it to a close once and for all in a professional manor.
    Regards
    I received a phone call within 14 hours of sending the email from executive customer relations. They came back with new information from engineering but did not think it was acceptable as engineering were now blaming my battery decrease on the assumption that my apartment might be too hot this causing the CPU to run at a higher temperature making the battery decrease quicker. We both agreed that it was an unacceptable answer.
    The day after I received another call from them stating that engineering had now finished tests and came to the conclusion that when testing on Leopard and Snow Leopard on the MacBook Pro 2009 there was no difference in battery run time whats so ever. I found this hard to believe so asked exactly how the test was conducted. Was it conducted in the same fashion that I had spent the last 9 months talking about. ' Using below default energy saving settings with only airport on while completing basic web browsing '???
    They confirmed this was not the case, engineering had basically turned the machines on, turned the screen right down to 1 bar and left them on screen saver over night. As you can imaging I was speechless (for a few seconds)
    Apple seem consistent on NOT admitting that there is an issue with battery performance for a minority of customers. As is stands now engineering in Europe have now passed the case over to engineering in the US for further ' in-depth ' tests.
    I know there are people out there that are suffering the same issues as myself and I welcome you to please contact me with your experiences. As the more of us that complain about this make it harder for Apple to deny this and brush it under the carpet.
    Please feel free to reply to this thread or email me directly on [email protected]

    Thomas A Reed wrote:
    I mean this in the kindest way but please read the post
    Please, nobody's going to waste their time reading all that! I don't know what you possibly could have said about this issue that took up so much space, but if you can't express it more concisely, it's probably not worth reading.
    I have used SL on both a unibody MBP and an older MBP. On the older MBP, when I upgraded from Leopard to SL, I got a noticeable increase in battery life immediately. I have no such comparison on the unibody MBP, since it had SL installed to begin with, but I'll put it this way: I haven't come close to running out of power on it. I used it once for about 4 hours and still had more than a 1/3 charge. I could have easily used it for another couple hours, at least. And this was with a 17" MBP, which uses more power than your 13", and without much in the way of battery-saving going on. (Screen at full brightness, AirPort on and in use, Bluetooth on, etc.)
    It's difficult to say that SL is the problem when it clearly isn't for everyone. What your problem is, I don't know, but maybe if you posted a more concise question you'd get some answers.
    I think ..
    This thread is mainly aimed at people that are using a mid 2009 unibody MacBook Pro 13" or upwards that came pre-installed with Leopard.....
    at the beginning of the thread I made it pretty clear, if you are not affected by this then I'm happy for you, but then the thread is clearly not aimed at you. I can guarantee that I have tested this exactly the same way I did with Leopard and there is a significant decrease. I also know there are people out there that have gained battery life but there have also been many threads containing people who have lost battery life.

Maybe you are looking for