Very Bad performance with high stress on Tempdb

Hello ,
below is the execution plan for a query rapidly increase the Tempdb and has very slow performance,
appreciate your suggestion to enhance this query (any data is available upon request) 

>Covering indexes will make a huge difference.
You can't simply "create-covering-index" yourself out from every performance jam.
Questions:
Is the query important enough to justify special consideration?
How many covering indexes?
What is the performance impact of the new covering indexes on other queries?
Query optimization:
http://www.sqlusa.com/articles/query-optimization/
Kalman Toth Database & OLAP Architect
SELECT Video Tutorials 4 Hours
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

Similar Messages

  • I had a very bad experience with apple maps. It is not at all useful. How such application is developed by apple I dont undersatand. Pl help me how to remove it from my Iphone. Vijay from Hyderabad. India

    I had a very bad experience with apple maps. It is not at all useful. How such application is developed by apple I dont undersatand. Pl help me how to remove it from my Iphone. Vijay from Hyderabad. India

    Tell Apple.
    http://www.apple.com/feedback/iphone.html

  • Bad performance with brandnew system

    hello,
    i set up a completely new win7-64bit based on a fresh osx (snow-leopard update) on a fresh harddisk....and i have very bad 3d performance with only 3 (!!) programs installed. i am working with autodesk 3ds max and autocad and both run very slow. my last system was win7-64bit, too, but running MUCH faster.
    it must be a driver problem, but i dont know how to change the nvidia driver.
    edit:
    after having changed driver from directx 9 to open-gl performance is very fast.
    please help.
    alex
    Message was edited by: mbp_3d

    Hi Bruno
        In the following Re: Generic Sync: Object can not be deserilized / Multiple synchronization call you had mentioned that you are using MI 2.5 SP16 Client.  For your information MI doesnt support Windows Mobile 5 OS on SP16 but only from SP18 does it support this OS.  Have you tried upgrading the client to any of the SPs i had mentioned in the above thread and then checked the performance?
    Best Regards
    Sivakumar

  • Slow performance with high resolution external monitor

    Hello,
    I recently bought HP EliteBook 840 G1, i7-4600U, 8gb ram, HD intel graphics 4400, 256GB SSD.
    Everything would be fine, but when I connect my 30" Dell monitor with 2560x1600 resolution as an external monitor, the performance of the computer drops significantly to the point where it becomes unconvenient to work with programs that require more resorces.
    I understand that it might be due to limitations of the hardware (most probably graphic card is too weak ? ), but still I'd like to ask if there is anything I could do to boost the performance of HP Elitebook with high resolution external monitor.

    Hi, you should use renderMode = gpu in your application descriptor xml file, especially for latest android devices. But gpu is not a good idea for old devices, so you may also try renderMode = direct.
    Honestly, I don't think those android devices made in china have good performance, especially gpu.

  • Very bad performance

    I have mabook pro mid 2012. Memory 8 GB, SSD 256 GB. After update to yosemite, my performance is very bad.
    this screens of usage cpu
    https://www.evernote.com/shard/s301/sh/ec3e4aaf-8c39-4971-bd4d-6343e040516c/cfe5 2044dd723500517a1b0630bc07cc/deep/0/Мониторинг-системы-(Все-процессы)-и-Start-Ne w-Discussion---Apple-Support-Communities.png
    https://www.dropbox.com/s/gnsf9jqao0qeknz/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%2 0%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202014-10-18%20%D0%B2%2022.33.10.png?dl=0
    On the second screen idle 97%+. What is?

    Some value...sorry but the editor it doesn't help..
    Blocking Session Id 0
    Wait Type null
    Wait Time 0
    last_wait_type
    SOS_SCHEDULER_YIELD
    open_transaction_count
    open_resultset_count
    2
    1
    transaction_id
    context_info
    percent_complete
    estimated_completion_time
    cpu_time
    total_elapsed_time
    2528356
    0x
    0
    0
    20866516
    23232274
    reads
    writes
    logical_reads
    text_size
    331686   
    1175137
    346450263
     2147483647
    transaction_isolation_level
    lock_timeout
    deadlock_priority
    row_count
    prev_error
    nest_level
    granted_query_memory
    executing_managed_code
    2
    -1
    0
    0
    0
    0
    761341
    0

  • Very bad performance of NWBC in IE11

    Hello colleagues!
    I've faced with a bad performance of NWBC in IE11 after update to NW7.02 SP16 GRC10 SP18. According to the pam IE 11 is supported.
    When I log in and try to create an access request I get a picture with slow circle
    (the message at the bottom of the window indicates that I've switched off all security settings and plug-ins)
    After 1-1,5 minute I get a normal screen
    If I try select an entry from any drop list or perform any other actions the window hangs with information (Not responding)
    Has anyone experienced the same problem in GRC or similar products?
    My search results for this issue were not successful.
    I suspect that the problem is in NWBC, because webgui works fine, and hope that someone can provide with the corrections.
    I've tried to use httpwatch, but it hasn't shown any useful information. I only identified that big time consumption happens when load one page (see below)
    Could any one advice how to resolve the issue ?
    System parameters:
    SAP_BASIS    702    0016    SAPKB70216    SAP - базисная система
    SAP_ABA    702    0016    SAPKA70216    Компоненты, общие для всех приложений
    PI_BASIS    702    0016    SAPK-70216INPIBASIS    Basis Plug-In
    ST-PI    2008_1_700    0011    SAPKITLRDK    SAP Solution Tools Plug-In
    SAP_BW    702    0016    SAPKW70216    SAP Business Warehouse
    GRCFND_A    V1000    0018    SAPK-V1018INGRCFNDA    GRC Foundation ABAP
    ST-A/PI    01Q_700    0002    SAPKITAB7L    Servicetools for other App./Netweaver 04
    Regards,
    Artem
    P.S. notes that I have checked:
    http://service.sap.com/sap/support/notes/1717650
    http://service.sap.com/sap/support/notes/1674530
    http://service.sap.com/sap/support/notes/1937379
    http://service.sap.com/sap/support/notes/1926394
    http://service.sap.com/sap/support/notes/2016738

    Hello Samuli!
    I've implemented all corrections up to Corrections for unified rendering 702/17 VII.
    Program WDG_MAINTAIN_UR_MIMES shows the following output:
    Status
    ZIP Archive Path in MIME Repository:     /sap/public/bc/ur/ur_mimes_nw7.zip
    ZIP File Prefix:                         mimes/
    ZIP Archive Timestamp:                   11.03.2015 16:37:21
    ZIP Archive LOIO:                        0019BBCA3D421DEDB6E50FEB0CAFEA8B
    ZIP Archive Size [Bytes]:                12.879.368
    Deployed ZIP Archive Timestamp:          11.03.2015 16:37:21
    Deployment Timestamp:                    11.03.2015 17:09:09
    Number of deployed files:                8.161
    Deployed version.properties:
      urversion:                             7.33.3.80.0
      urrelease:                             UnifiedR_03_REL
      urchangelist:                          222951
      urtimestamp:                           201410291102
      urimplementationversion:               03.000.20141028171614.0000
      urspnumber:                            00
      ursppatchlevel:                        0
      urtarget:                              NewYork
      codeline:                              $File: //tc1/uicore/UnifiedR_03_REL/src/_version/version/version.properties $
    CLUR_NW7=>VERSION_PROPERTIES:
      urversion:                             7.33.3.80.0
      urrelease:                             UnifiedR_03_REL
      urchangelist:                          222951
      jschangelist:                          223208
      urtimestamp:                           201410291102
      urimplementationversion:               03.000.20141028171614.0000
      urspnumber:                            00
      ursppatchlevel:                        0
      urtarget:                              NewYork
      codeline:                              $File: //tc1/uicore/UnifiedR_03_REL/src/_version/version/version.properties $
    Previously I had 7.33.3.68.0.
    So, I don't know what else can do... If I roll back to Explorer 9, the problem disappears, however another user with IE9 experiences the same problem. FF works fine.
    Could you give me please another idea to resolve the data?
    Regards,
    Artem

  • Very slow performance with Motion

    Using Motion 3.0.2 on a new gen MacPro 2 x 2.4 Quad Core Intel Xeon and 8GB Ram OSX 10.6.4
    I'm having very poor performance in Motion the system was set to use 80% of the memory so I tried bumping that up to 90% and there was no change. Could this be the performance of the graphic card because I have recently seen a post regarding the 5770 card could this be related to these new cards?
    The performance has been bad when using lots of particles in a project but also when just using two lines of text in the canvas so I don't believe that it is because I'm running Motion to extreme.

    Text is a real performance killer in Motion because of Apple's insistence on redrawing the vectors in every frame. Unless I need remarkable interactions or 3D stuff, I usually export text layers as movies and bring them back in for that very reason.
    No one really knows how the 5770 and 5870 cards compare directly agains our older 4870s. The online test geeks do not supply enough information to be helpful in evaluating their applicability to Motion.
    bogiesan

  • Very bad graphics with scrolling (MacBook)

    Firefox 3.6 and 4.0 beta having graphic problems by scrolling up and down.
    Images and text stutters very bad. I use Chrome now because it's damn annoying. Safari, Opera and Chrome works fine..
    I tried:
    - Reinstall Firefox
    - Trying beta 4
    - Reinstall OSX
    Nothing of this helped.
    Either one of my friends has this problem on his MacBook Pro.
    Please, fix this.

    '''FUCK FIREFOX!'''
    I'm still having the same problem (and many others) and those retarded developers releasing updates every day... But they never did anything to this damn silly bug..
    I am pissed off and won't use firefox anymore.. screw this

  • Very Bad Experience with EDGE Program, Trying to get a resolution for 2 Months

    This is long winded but a lot has happened in two months. My wife and I are both on the Edge program. When she initially signed up for the program she got the Iphone 5. She ended up having some technical problems with the screen on her phone so she took it to an Apple store. The Apple representative replaced the phone for her and this is where all of our problems started. A couple months later she was eligible to “Edge Up.” She decided to do that when the newest Iphone came out. She got the Iphone 6 and sent her old phone back just like she was supposed to. The phone was sent back to her because Verizon said it wasn’t the original phone. She called Verizon and explained what happened and was instructed to resend the phone, which she did. We didn’t hear any more about it until our October 27th bill was $398.51 higher than it should have been. They charged us as if we never returned the phone.
    We called Verizon a couple times and finally on November 8th a ticket ([removed]) was filed. At that time the representative told us she would follow up within the next couple days but she didn’t. During the ensuing month we made close to 15 inquiries (THAT IS NOT AN EXAGGERATION) with Verizon customer service. During the first 3 or 4 calls we were told that the refund should be coming soon and to be patient. After that the representatives would ask some new questions but mostly ones that we answered on previous calls. The representatives would say they’d have to do some investigating and would give us a call back in a couple days. With the exception of one time, they never did so my wife or I would call Verizon back. Each time we’d be connected to a different person so we would have to repeat the same story and answer repetitive questions. Before we would get off the phone we would ask to make sure the account notes were updated in hopes that we wouldn’t have to keep explaining ourselves.
    We were becoming very frustrated over the whole situation. It bothered us that they weren’t getting back to us, that each time we called we had to tell the same information and mostly because we weren’t getting any answers about our four hundred dollars.
    Finally about a WHOLE MONTH after the original ticket was filed, on December 5th I finally spoke to a Representative (JP) that was helpful. Apparently, the ticket was stalled because the Verizon Rep either put incorrect or inadequate information on the ticket.  She was able to track it down with the USPS tracking number. That frustrated us further because we couldn’t understand why she was able to find this out but why none of the other people could. She was going to look into this further and gave me an email address so I wouldn’t have to keep talking to new people.
    We have emailed back in forth many times since December 5th.  After the third submission of the ticket by JP, some warehouse in TX has confirmed they received my wife’s phone but I still don’t have a refund. I don’t know what to do!!! At this point I am beyond frustrated. I actually feel a little helpless. This has gone on for over two months. My wife and I have literally spent hours on the phone with Verizon. I haven’t heard from JP since before Christmas. I never would have before but I am considering another wireless company. Can anyone on here help me or point me to someone that can? For anyone that is currently considering the edge program I would think twice.
    If anyone is willing to help or has any ideas please let me know.
    Ticket number removed as required by the Verizon Wireless Terms of Service
    Message was edited by: Admin Moderator

    It seems as if you have done all that should be expected of you. I have seen where exchanging the phone at an Apple store has caused this type of problem when performing an Edge Up when the Apple employee who makes the exchange does not file the proper paperwork in order to have this reflected in Verizon's records.
    I would try contacting the area president for your location or possibly the person in charge of national customer service. The following site has information about Verizon Wireless leadership with a method to make contact. Simply click on the "View Profile" link on the person in question and at the bottom of the page should be a contact line.
    I would relate your story to one of these executives and am confident they will have the fortitude to help you out in a timely fashion.
    Good luck.
    Leadership | Verizon Wireless

  • My very bad experiences with 10.5 Server

    Hi,
    I feel very unhappy. After using, installing and maintaining Apple servers and clients for 20 years I am absolutly helpless with 10.5 server. I have now installed it 5 times from the scratch testing the different setup options: Standard, Workgroup and Enterprise System - always with and without actual updates. And always something else did not work like it should. Wiki,Blog,Calander was not working, LDAP was broken/corrupted, DNS went wrong and so on. Who has the ultimate "How to get all working" idea for me and who shares my experiences?
    Thanks Alexander
    Message was edited by: ademmler

    Hi ademmler
    I've used and supported Apple Computers since 1981. When Apple's first Server product came along that I was asked to be involved with (AS IP Manager 5) I did the same for that.
    Excluding hardware faults and user error (customer's fiddling basically) I've had little or no problems.
    I can honestly say the same for 10.5. Since its release I must have done at least 50 installations/deployments of varying complexity at numerous sites around the UK. Apart from a few hiccups right at the beginning my experience has been positive. The key has to lie with how DNS is approached as mentioned by Tim and David. It's also important to note that one of Leopard's minimum requirements is an active ethernet connection. This has to be an important factor especially when coupled with a sound approach to DNS. This was not the case with 10.4. I've built complex 10.4 Servers with no network connection with little or no problems.
    You can't with 10.5. I've found Leopard sensitive to what is being broadcast by some routers/switches/DHCP Servers. This can also stall the initial configuration leading to instability and poor performance. Clearly there is something in Standard and Workgroup that is primed to respond to a mature network. Although it should not interfere with Advanced I've found occasionally it does.
    In my opinion no Server product regardless of platform is perfect whether now or in the past. As I remember it 10.2 Server gave me far more problems than 10.5 ever has. Again just my opinion but I would say Leopard was probably released 6 months too early? Some of us can remember 10.4's first release being met with similar criticism. For most people 10.4 did not 'settle down' until 10.4.6 or even 10.4.8. In that sense it's still early days for Leopard. Although it's not that bad I also think Apple could have given us a fuller-featured GUI driven DNS/DHCP Service similar to Microsoft's offerings.
    I posted something on Leopard's release that I still use at sites up and down the country:
    http://discussions.apple.com/thread.jspa?messageID=7650358&#7650358
    Works every time for me. You might find it useful?
    Tony

  • Bad performance with many xmlqueries in select and big resultset

    I'm running into big performance problems with the following query (edited the query a bit to remove sensitive information):
    SELECT id "id",created "created",
      xmlcast(xmlquery('declare default element namespace "http://www.example.com/myproject/schema/namespace2";declare namespace c="http://www.example.com/myproject/schema/common";/element1/element2/name' passing xml returning content) as varchar2(182))"element2Name",
      xmlcast(xmlquery('declare default element namespace "http://www.example.com/myproject/schema/namespace2";declare namespace c="http://www.example.com/myproject/schema/common";/element1/element3/name' passing xml returning content) as varchar2(182))"element3Name",
      xmlcast(xmlquery('declare default element namespace "http://www.example.com/myproject/schema/namespace2";declare namespace c="http://www.example.com/myproject/schema/common";/element1/ror/gcor' passing xml returning content) as varchar2(5))"gcor",
      xmlcast(xmlquery('declare default element namespace "http://www.example.com/myproject/schema/namespace2";declare namespace c="http://www.example.com/myproject/schema/common";/element1/c:element1Header/c:status/c:cStatus' passing xml returning content) as integer)"cStatus",
      xmlcast(xmlquery('declare default element namespace "http://www.example.com/myproject/schema/namespace2";declare namespace c="http://www.example.com/myproject/schema/common";/element1/c:element1Header/c:status/c:lrrm' passing xml returning content) as integer)"lrrm",
      xmlcast(xmlquery('declare default element namespace "http://www.example.com/myproject/schema/namespace2";declare namespace c="http://www.example.com/myproject/schema/common";/element1/c:element1Header/c:status/c:sent' passing xml returning content) as integer)"sent",
      xmlcast(xmlquery('declare default element namespace "http://www.example.com/myproject/schema/namespace2";declare namespace c="http://www.example.com/myproject/schema/common";/element1/c:element1Header/c:status/c:success' passing xml returning content) as integer)"success",
      xmlcast(xmlquery('declare default element namespace "http://www.example.com/myproject/schema/namespace2";declare namespace c="http://www.example.com/myproject/schema/common";/element1/c:element1Header/c:status/c:processStep' passing xml returning content) as integer)"processStep",
      xmlcast(xmlquery('declare default element namespace "http://www.example.com/myproject/schema/namespace2";declare namespace c="http://www.example.com/myproject/schema/common";/element1/header/status/aseod' passing xml returning content) as number(1))"aseod",
      xmlcast(xmlquery('declare default element namespace "http://www.example.com/myproject/schema/namespace2";declare namespace c="http://www.example.com/myproject/schema/common";/element1/submission/deferred' passing xml returning content) as number(1))"deferred",
      xmlcast(xmlquery('declare default element namespace "http://www.example.com/myproject/schema/namespace2";declare namespace c="http://www.example.com/myproject/schema/common";/element1/header/status/eventReportReceived' passing xml returning content) as number(1))"eventReports",
      xmlcast(xmlquery('declare default element namespace "http://www.example.com/myproject/schema/namespace2";declare namespace c="http://www.example.com/myproject/schema/common";/element1/c:element1Header/c:status/c:isOpen' passing xml returning content) as number(1))"isOpen",
      xmlcast(xmlquery('declare default element namespace "http://www.example.com/myproject/schema/namespace2";declare namespace c="http://www.example.com/myproject/schema/common";/element1/c:element1Header/c:hasNotes' passing xml returning content) as number(1))"hasNotes"
    FROM tablename,xmltable(xmlnamespaces(default 'http://www.example.com/myproject/schema/namespace2','http://www.example.com/myproject/schema/common' as "c"),'/element1' passing xml columns
    created timestamp path 'c:element1Header/c:creationTime/text()',
    organization_id integer path 'c:element1Header/c:organization/c:organizationId/text()',
    is_sender number(1) path 'c:element1Header/c:isSender/text()')
    WHERE organization_id = 5 AND is_sender = 1 AND created >= sysdate-20 AND created <= sysdate+1;This query is fast as long as the results is small (<1000), but when the resultset grows bigger, the performance seems to decrease exponentially. The cause of this slowdown seems to be in the xmlqueries; commenting out the xmlqueries makes the query very fast again (in the order of a few seconds), even with a 15000+ resultset, while including the xmlqueries makes the query take many minutes.
    Workaround I tried: using a rownum < 1000 works fairly well, but only if I don't use order by (which is required). order by forces the resultset to be full built regardless of the rownum limit. (this was done with a subquery orderby and a rownum on the superquery)
    Other workaround i tried: Having the subquery only return the xml column, and doing the xmlqueries in the superquery. I couldn't get this to work, something about no longer having a key-preserved table.
    Background info about the database: Oracle 11.2.0.3.0, binary xmltype column, with a xmlindex unstructured component on all paths in this query, and a structured component with secondary indexes on the paths used in the WHERE (created, organization_id and is_sender). Database has about 140k records total.
    My question is, if anyone knows if this xmlquery bottleneck can be remedied somehow?
    Addition: graph i made indicating the performance at different resultset sizes. Horizontal axis is size of resultset, vertical axis is time spent in seconds: http://i.imgur.com/F2tyg.png

    Just count(*), nothing else in the select:
    COUNT(*)              
    15432                 
    Plan hash value: 1584286506
    | Id  | Operation                      | Name                  | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT               |                       |     1 |    39 |    31   (0)| 00:00:01 |
    |   1 |  SORT AGGREGATE                |                       |     1 |    39 |            |          |
    |*  2 |   FILTER                       |                       |       |       |            |          |
    |   3 |    NESTED LOOPS                |                       |    15 |   585 |    31   (0)| 00:00:01 |
    |   4 |     TABLE ACCESS BY INDEX ROWID| TABLENAME_SC          |    15 |   405 |    16   (0)| 00:00:01 |
    |*  5 |      INDEX RANGE SCAN          | TABLENAME_SC_SUB_IX   |    15 |       |     3   (0)| 00:00:01 |
    |   6 |     TABLE ACCESS BY USER ROWID | TABLENAME             |     1 |    12 |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - filter(SYSDATE@!-500<=SYSDATE@!-50)
       5 - access("SYS_SXI_0"."ORGANIZATION_ID"=6 AND "SYS_SXI_0"."IS_SENDER"=1 AND
                  "SYS_SXI_0"."CREATION_TIME">=SYSDATE@!-500 AND "SYS_SXI_0"."CREATION_TIME"<=SYSDATE@!-50)Original query with ORDER BY on 2 structured component columns, 1 descending and 1 ascending (NOTE: While the explain plan says the time is 00:00:01, the query takes 763 seconds to complete)
    | Id  | Operation                      | Name                           | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT               |                                |    15 | 23880 |    32   (4)| 00:00:01 |
    |   1 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |*  2 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |    17 |   697 |     5   (0)| 00:00:01 |
    |*  3 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |    17 |       |     3   (0)| 00:00:01 |
    |   4 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |*  5 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |    16 |   656 |     5   (0)| 00:00:01 |
    |*  6 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |    16 |       |     3   (0)| 00:00:01 |
    |   7 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |*  8 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |    15 |   615 |     4   (0)| 00:00:01 |
    |*  9 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |    15 |       |     3   (0)| 00:00:01 |
    |  10 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |* 11 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |    17 |   697 |     5   (0)| 00:00:01 |
    |* 12 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |    17 |       |     3   (0)| 00:00:01 |
    |  13 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |* 14 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |    17 |   697 |     5   (0)| 00:00:01 |
    |* 15 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |    17 |       |     3   (0)| 00:00:01 |
    |  16 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |* 17 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |    17 |   697 |     5   (0)| 00:00:01 |
    |* 18 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |    17 |       |     3   (0)| 00:00:01 |
    |  19 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |* 20 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |    17 |   697 |     5   (0)| 00:00:01 |
    |* 21 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |    17 |       |     3   (0)| 00:00:01 |
    |  22 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |* 23 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |    17 |   697 |     5   (0)| 00:00:01 |
    |* 24 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |    17 |       |     3   (0)| 00:00:01 |
    |  25 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |* 26 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |     1 |    41 |     4   (0)| 00:00:01 |
    |* 27 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |     1 |       |     3   (0)| 00:00:01 |
    |  28 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |* 29 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |     8 |   328 |     4   (0)| 00:00:01 |
    |* 30 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |     8 |       |     3   (0)| 00:00:01 |
    |  31 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |* 32 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |     1 |    41 |     4   (0)| 00:00:01 |
    |* 33 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |     1 |       |     3   (0)| 00:00:01 |
    |  34 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |* 35 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |    17 |   697 |     5   (0)| 00:00:01 |
    |* 36 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |    17 |       |     3   (0)| 00:00:01 |
    |  37 |  SORT ORDER BY                 |                                |    15 | 23880 |    32   (4)| 00:00:01 |
    |* 38 |   FILTER                       |                                |       |       |            |          |
    |  39 |    NESTED LOOPS                |                                |    15 | 23880 |    31   (0)| 00:00:01 |
    |  40 |     TABLE ACCESS BY INDEX ROWID| TABLENAME_SC                   |    15 |  1350 |    16   (0)| 00:00:01 |
    |* 41 |      INDEX RANGE SCAN          | TABLENAME_SC_SUB_IX            |    15 |       |     3   (0)| 00:00:01 |
    |  42 |     TABLE ACCESS BY USER ROWID | TABLENAME                      |     1 |  1502 |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - filter(SYS_XMLI_LOC_ISNODE("SYS_P1"."LOCATOR")=1)
       3 - access("SYS_P1"."RID"=:B1 AND "SYS_P1"."PATHID"=HEXTORAW('509D') )
       5 - filter(SYS_XMLI_LOC_ISNODE("SYS_P3"."LOCATOR")=1)
       6 - access("SYS_P3"."RID"=:B1 AND "SYS_P3"."PATHID"=HEXTORAW('4FDE') )
       8 - filter(SYS_XMLI_LOC_ISNODE("SYS_P5"."LOCATOR")=1)
       9 - access("SYS_P5"."RID"=:B1 AND "SYS_P5"."PATHID"=HEXTORAW('7129') )
      11 - filter(SYS_XMLI_LOC_ISNODE("SYS_P7"."LOCATOR")=1)
      12 - access("SYS_P7"."RID"=:B1 AND "SYS_P7"."PATHID"=HEXTORAW('73C0') )
      14 - filter(SYS_XMLI_LOC_ISNODE("SYS_P9"."LOCATOR")=1)
      15 - access("SYS_P9"."RID"=:B1 AND "SYS_P9"."PATHID"=HEXTORAW('3092') )
      17 - filter(SYS_XMLI_LOC_ISNODE("SYS_P11"."LOCATOR")=1)
      18 - access("SYS_P11"."RID"=:B1 AND "SYS_P11"."PATHID"=HEXTORAW('30AA') )
      20 - filter(SYS_XMLI_LOC_ISNODE("SYS_P13"."LOCATOR")=1)
      21 - access("SYS_P13"."RID"=:B1 AND "SYS_P13"."PATHID"=HEXTORAW('3415') )
      23 - filter(SYS_XMLI_LOC_ISNODE("SYS_P15"."LOCATOR")=1)
      24 - access("SYS_P15"."RID"=:B1 AND "SYS_P15"."PATHID"=HEXTORAW('4972') )
      26 - filter(SYS_XMLI_LOC_ISNODE("SYS_P17"."LOCATOR")=1)
      27 - access("SYS_P17"."RID"=:B1 AND "SYS_P17"."PATHID"=HEXTORAW('745F') )
      29 - filter(SYS_XMLI_LOC_ISNODE("SYS_P19"."LOCATOR")=1)
      30 - access("SYS_P19"."RID"=:B1 AND "SYS_P19"."PATHID"=HEXTORAW('6BA9') )
      32 - filter(SYS_XMLI_LOC_ISNODE("SYS_P21"."LOCATOR")=1)
      33 - access("SYS_P21"."RID"=:B1 AND "SYS_P21"."PATHID"=HEXTORAW('62DB') )
      35 - filter(SYS_XMLI_LOC_ISNODE("SYS_P23"."LOCATOR")=1)
      36 - access("SYS_P23"."RID"=:B1 AND "SYS_P23"."PATHID"=HEXTORAW('1FD9') )
      38 - filter(SYSDATE@!-500<=SYSDATE@!-50)
      41 - access("SYS_SXI_0"."ORGANIZATION_ID"=6 AND "SYS_SXI_0"."IS_SENDER"=1 AND
                  "SYS_SXI_0"."CREATION_TIME">=SYSDATE@!-500 AND "SYS_SXI_0"."CREATION_TIME"<=SYSDATE@!-50)
    Note
       - Unoptimized XML construct detected (enable XMLOptimizationCheck for more information)The same query with ORDER BY only on CREATED DESC (takes 15 seconds to complete):
    | Id  | Operation                      | Name                           | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT               |                                |    15 | 23880 |    31   (0)| 00:00:01 |
    |   1 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |*  2 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |    17 |   697 |     5   (0)| 00:00:01 |
    |*  3 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |    17 |       |     3   (0)| 00:00:01 |
    |   4 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |*  5 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |    16 |   656 |     5   (0)| 00:00:01 |
    |*  6 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |    16 |       |     3   (0)| 00:00:01 |
    |   7 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |*  8 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |    15 |   615 |     4   (0)| 00:00:01 |
    |*  9 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |    15 |       |     3   (0)| 00:00:01 |
    |  10 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |* 11 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |    17 |   697 |     5   (0)| 00:00:01 |
    |* 12 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |    17 |       |     3   (0)| 00:00:01 |
    |  13 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |* 14 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |    17 |   697 |     5   (0)| 00:00:01 |
    |* 15 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |    17 |       |     3   (0)| 00:00:01 |
    |  16 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |* 17 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |    17 |   697 |     5   (0)| 00:00:01 |
    |* 18 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |    17 |       |     3   (0)| 00:00:01 |
    |  19 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |* 20 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |    17 |   697 |     5   (0)| 00:00:01 |
    |* 21 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |    17 |       |     3   (0)| 00:00:01 |
    |  22 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |* 23 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |    17 |   697 |     5   (0)| 00:00:01 |
    |* 24 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |    17 |       |     3   (0)| 00:00:01 |
    |  25 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |* 26 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |     1 |    41 |     4   (0)| 00:00:01 |
    |* 27 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |     1 |       |     3   (0)| 00:00:01 |
    |  28 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |* 29 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |     8 |   328 |     4   (0)| 00:00:01 |
    |* 30 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |     8 |       |     3   (0)| 00:00:01 |
    |  31 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |* 32 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |     1 |    41 |     4   (0)| 00:00:01 |
    |* 33 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |     1 |       |     3   (0)| 00:00:01 |
    |  34 |  SORT GROUP BY                 |                                |     1 |    41 |            |          |
    |* 35 |   TABLE ACCESS BY INDEX ROWID  | SYS63339_TABL_XML_I_PATH_TABLE |    17 |   697 |     5   (0)| 00:00:01 |
    |* 36 |    INDEX RANGE SCAN            | SYS63339_TABL_XML_I_PIKEY_IX   |    17 |       |     3   (0)| 00:00:01 |
    |* 37 |  FILTER                        |                                |       |       |            |          |
    |  38 |   NESTED LOOPS                 |                                |    15 | 23880 |    31   (0)| 00:00:01 |
    |  39 |    TABLE ACCESS BY INDEX ROWID | TABLENAME_SC                   |    15 |  1350 |    16   (0)| 00:00:01 |
    |* 40 |     INDEX RANGE SCAN DESCENDING| TABLENAME_SC_SUB_IX            |    15 |       |     3   (0)| 00:00:01 |
    |  41 |    TABLE ACCESS BY USER ROWID  | TABLENAME                      |     1 |  1502 |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - filter(SYS_XMLI_LOC_ISNODE("SYS_P1"."LOCATOR")=1)
       3 - access("SYS_P1"."RID"=:B1 AND "SYS_P1"."PATHID"=HEXTORAW('509D') )
       5 - filter(SYS_XMLI_LOC_ISNODE("SYS_P3"."LOCATOR")=1)
       6 - access("SYS_P3"."RID"=:B1 AND "SYS_P3"."PATHID"=HEXTORAW('4FDE') )
       8 - filter(SYS_XMLI_LOC_ISNODE("SYS_P5"."LOCATOR")=1)
       9 - access("SYS_P5"."RID"=:B1 AND "SYS_P5"."PATHID"=HEXTORAW('7129') )
      11 - filter(SYS_XMLI_LOC_ISNODE("SYS_P7"."LOCATOR")=1)
      12 - access("SYS_P7"."RID"=:B1 AND "SYS_P7"."PATHID"=HEXTORAW('73C0') )
      14 - filter(SYS_XMLI_LOC_ISNODE("SYS_P9"."LOCATOR")=1)
      15 - access("SYS_P9"."RID"=:B1 AND "SYS_P9"."PATHID"=HEXTORAW('3092') )
      17 - filter(SYS_XMLI_LOC_ISNODE("SYS_P11"."LOCATOR")=1)
      18 - access("SYS_P11"."RID"=:B1 AND "SYS_P11"."PATHID"=HEXTORAW('30AA') )
      20 - filter(SYS_XMLI_LOC_ISNODE("SYS_P13"."LOCATOR")=1)
      21 - access("SYS_P13"."RID"=:B1 AND "SYS_P13"."PATHID"=HEXTORAW('3415') )
      23 - filter(SYS_XMLI_LOC_ISNODE("SYS_P15"."LOCATOR")=1)
      24 - access("SYS_P15"."RID"=:B1 AND "SYS_P15"."PATHID"=HEXTORAW('4972') )
      26 - filter(SYS_XMLI_LOC_ISNODE("SYS_P17"."LOCATOR")=1)
      27 - access("SYS_P17"."RID"=:B1 AND "SYS_P17"."PATHID"=HEXTORAW('745F') )
      29 - filter(SYS_XMLI_LOC_ISNODE("SYS_P19"."LOCATOR")=1)
      30 - access("SYS_P19"."RID"=:B1 AND "SYS_P19"."PATHID"=HEXTORAW('6BA9') )
      32 - filter(SYS_XMLI_LOC_ISNODE("SYS_P21"."LOCATOR")=1)
      33 - access("SYS_P21"."RID"=:B1 AND "SYS_P21"."PATHID"=HEXTORAW('62DB') )
      35 - filter(SYS_XMLI_LOC_ISNODE("SYS_P23"."LOCATOR")=1)
      36 - access("SYS_P23"."RID"=:B1 AND "SYS_P23"."PATHID"=HEXTORAW('1FD9') )
      37 - filter(SYSDATE@!-500<=SYSDATE@!-50)
      40 - access("SYS_SXI_0"."ORGANIZATION_ID"=6 AND "SYS_SXI_0"."IS_SENDER"=1 AND
                  "SYS_SXI_0"."CREATION_TIME">=SYSDATE@!-500 AND "SYS_SXI_0"."CREATION_TIME"<=SYSDATE@!-50)
    Note
       - Unoptimized XML construct detected (enable XMLOptimizationCheck for more information)Removing all XmlQueries from the SELECT and adding 1 of them to the XmlTable in the FROM (full table scan, takes 25 seconds to complete):
    | Id  | Operation                    | Name                           | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT             |                                |  1522 |  2232K| 15515   (3)| 00:03:07 |
    |   1 |  TABLE ACCESS BY INDEX ROWID | TABLENAME_SC                   |     1 |    21 |     2   (0)| 00:00:01 |
    |*  2 |   INDEX RANGE SCAN           | SYS63339_63348_RID_IDX         |     1 |       |     1   (0)| 00:00:01 |
    |   3 |  TABLE ACCESS BY INDEX ROWID | TABLENAME_SC                   |     1 |    32 |     2   (0)| 00:00:01 |
    |*  4 |   INDEX RANGE SCAN           | SYS63339_63348_RID_IDX         |     1 |       |     1   (0)| 00:00:01 |
    |   5 |  TABLE ACCESS BY INDEX ROWID | TABLENAME_SC                   |     1 |    23 |     2   (0)| 00:00:01 |
    |*  6 |   INDEX RANGE SCAN           | SYS63339_63348_RID_IDX         |     1 |       |     1   (0)| 00:00:01 |
    |   7 |  TABLE ACCESS BY INDEX ROWID | TABLENAME_SC                   |     1 |    27 |     2   (0)| 00:00:01 |
    |*  8 |   INDEX RANGE SCAN           | SYS63339_63348_RID_IDX         |     1 |       |     1   (0)| 00:00:01 |
    |   9 |  TABLE ACCESS BY INDEX ROWID | TABLENAME_SC                   |     1 |    18 |     2   (0)| 00:00:01 |
    |* 10 |   INDEX RANGE SCAN           | SYS63339_63348_RID_IDX         |     1 |       |     1   (0)| 00:00:01 |
    |  11 |  TABLE ACCESS BY INDEX ROWID | TABLENAME_SC                   |     1 |    13 |     2   (0)| 00:00:01 |
    |* 12 |   INDEX RANGE SCAN           | SYS63339_63348_RID_IDX         |     1 |       |     1   (0)| 00:00:01 |
    |* 13 |  TABLE ACCESS BY INDEX ROWID | SYS63339_TABL_XML_I_PATH_TABLE |     1 |    37 |     4   (0)| 00:00:01 |
    |* 14 |   INDEX RANGE SCAN           | SYS63339_TABL_XML_I_PIKEY_IX   |    17 |       |     3   (0)| 00:00:01 |
    |* 15 |  FILTER                      |                                |       |       |            |          |
    |* 16 |   TABLE ACCESS FULL          | TABLENAME                      |  1522 |  2232K|  9423   (4)| 00:01:54 |
    |  17 |   TABLE ACCESS BY INDEX ROWID| TABLENAME_SC                   |     1 |    13 |     2   (0)| 00:00:01 |
    |* 18 |    INDEX RANGE SCAN          | SYS63339_63348_RID_IDX         |     1 |       |     1   (0)| 00:00:01 |
    |  19 |   TABLE ACCESS BY INDEX ROWID| TABLENAME_SC                   |     1 |    13 |     2   (0)| 00:00:01 |
    |* 20 |    INDEX RANGE SCAN          | SYS63339_63348_RID_IDX         |     1 |       |     1   (0)| 00:00:01 |
    |  21 |   TABLE ACCESS BY INDEX ROWID| TABLENAME_SC                   |     1 |    21 |     2   (0)| 00:00:01 |
    |* 22 |    INDEX RANGE SCAN          | SYS63339_63348_RID_IDX         |     1 |       |     1   (0)| 00:00:01 |
    |  23 |   TABLE ACCESS BY INDEX ROWID| TABLENAME_SC                   |     1 |    21 |     2   (0)| 00:00:01 |
    |* 24 |    INDEX RANGE SCAN          | SYS63339_63348_RID_IDX         |     1 |       |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("SYS_SXI_7"."RID"=:B1)
       4 - access("SYS_SXI_6"."RID"=:B1)
       6 - access("SYS_SXI_5"."RID"=:B1)
       8 - access("SYS_SXI_4"."RID"=:B1)
      10 - access("SYS_SXI_3"."RID"=:B1)
      12 - access("SYS_SXI_2"."RID"=:B1)
      13 - filter(SYS_XMLI_LOC_ISTEXT("SYS_P0"."LOCATOR","SYS_P0"."PATHID")=1)
      14 - access("SYS_P0"."RID"=:B1 AND "SYS_P0"."PATHID"=HEXTORAW('509D') )
      15 - filter(CAST(TO_NUMBER(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL( (SELECT
                  SYS_XQ_PKSQL2XML("SYS_SXI_11"."ORGANIZATION_ID",2,4,2) FROM "USERN"."TABLENAME_SC" "SYS_SXI_11" WHERE
                  "SYS_SXI_11"."RID"=:B1),0,0,54525952,0),50,1,2)) AS integer )=6 AND
                  CAST(TO_NUMBER(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL( (SELECT SYS_XQ_PKSQL2XML("SYS_SXI_10"."IS_SENDER",2,4,2)
                  FROM "USERN"."TABLENAME_SC" "SYS_SXI_10" WHERE "SYS_SXI_10"."RID"=:B2),0,0,54525952,0),50,1,2)) AS
                  number(1) )=1 AND CAST(TO_TIMESTAMP(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL( (SELECT
                  SYS_XQ_PKSQL2XML("SYS_SXI_9"."CREATION_TIME",180,8,2) FROM "USERN"."TABLENAME_SC" "SYS_SXI_9" WHERE
                  "SYS_SXI_9"."RID"=:B3),0,0,20971520,0),50,1,2),'SYYYY-MM-DD"T"HH24:MI:SSXFF') AS timestamp
                  )>=SYSDATE@!-300 AND CAST(TO_TIMESTAMP(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL( (SELECT
                  SYS_XQ_PKSQL2XML("SYS_SXI_8"."CREATION_TIME",180,8,2) FROM "USERN"."TABLENAME_SC" "SYS_SXI_8" WHERE
                  "SYS_SXI_8"."RID"=:B4),0,0,20971520,0),50,1,2),'SYYYY-MM-DD"T"HH24:MI:SSXFF') AS timestamp
                  )<=SYSDATE@!-200)
      16 - filter(EXISTSNODE(SYS_MAKEXML(0,"SYS_ALIAS_11"."SYS_NC00003$"),'/oraxq_defpfx:element1','
                  xmlns:oraxq_defpfx="http://www.example.com/myproject/schema/namespace2"')=1)
      18 - access("SYS_SXI_11"."RID"=:B1)
      20 - access("SYS_SXI_10"."RID"=:B1)
      22 - access("SYS_SXI_9"."RID"=:B1)
      24 - access("SYS_SXI_8"."RID"=:B1)Index creation script:
    CREATE INDEX tabl_xml_ix
      ON tablename(xml)
      INDEXTYPE IS XDB.XMLIndex
      PARAMETERS('
        PATHS (INCLUDE (/element1/common:header/common:kind
    /element1/common:element1Header/common:referenceNumber
    /element1/common:element1Header/common:reference
    /element1/common:element1Header/common:organization/common:organizationId
    /element1/common:element1Header/common:status/common:cStatus
    /element1/common:element1Header/common:status/common:isOpen
    /element1/common:element1Header/common:status/common:processStep
    /element1/common:element1Header/common:status/common:lrrm
    /element1/common:element1Header/common:status/common:sent
    /element1/common:element1Header/common:status/common:success
    /element1/common:element1Header/common:creationTime)
                       NAMESPACE MAPPING (xmlns="http://www.example.com/myproject/schema/namespace2"
                            xmlns:common="http://www.example.com/myproject/schema/common"))');
    ALTER INDEX tabl_xml_ix
    PARAMETERS ('PATHS (INCLUDE ADD (/element1/e/referenceCode
    /element1/e/header/sNumber
    /element1/element2/name
    /element1/element3/name
    /element1/element4/id
    /element1/submission/deferred
    /element1/common:element1Header/common:organization/common:pNumber
    /element1/e/iNumber
    /element1/header/status/aseod
    /element1/common:element1Header/common:isSender
    /element1/ror/gcor
    /element1/header/status/eventReportReceived
    /element1/pod/eNumber)
                       NAMESPACE MAPPING (xmlns="http://www.example.com/myproject/schema/namespace2"
                            xmlns:common="http://www.example.com/myproject/schema/common"))');
    BEGIN
      DBMS_XMLINDEX.registerParameter(
        'tablename_add_sc','ADD_GROUP GROUP tablename_group
    XMLTABLE tablename_sc
    XMLNAMESPACES(
    DEFAULT ''http://www.example.com/myproject/schema/namespace2'',
    ''http://www.example.com/myproject/schema/common'' AS "common"
    ''/element1''
    COLUMNS
    is_sender NUMBER(1) path ''common:element1Header/common:isSender/text()'',
    creation_time TIMESTAMP PATH ''common:element1Header/common:creationTime/text()'',
    rn VARCHAR2(22 CHAR) PATH ''common:element1Header/common:referenceNumber/text()'',
    rc VARCHAR2(21) PATH ''e/referenceCode/text()'',
    reference VARCHAR2(35 CHAR) PATH ''common:element1Header/common:reference/text()'',
    i_nr VARCHAR2(35 CHAR) PATH ''e/iNumber/text()'',
    p_nr VARCHAR2(32) PATH ''common:element1Header/common:organization/common:pNumber/text()'',
    pod_e_nr VARCHAR2(13) PATH ''pod/eNumber/text()'',
    d_id VARCHAR2(16) PATH ''element4/id/text()'',
    organization_id INTEGER PATH ''common:element1Header/common:organization/common:organizationId/text()'',
    sequence_number INTEGER PATH ''e/eHeader/sequenceNumber/text()''
    END;
    ALTER INDEX tabl_xml_ix PARAMETERS('PARAM tablename_add_sc');
    create index tablename_sc_rn_ix on tablename_sc(rn);
    create index tablename_sc_time_ix on tablename_sc(creation_time);
    create index tablename_sc_sub_ix on tablename_sc (organization_id, is_sender, creation_time);Edited by: Michiel Weggen on Apr 11, 2012 2:02 AM Reason: Forgot secondary indexes.
    Edited by: Michiel Weggen on Apr 11, 2012 5:51 AM: changed path of d_id to element4/id in the structured component

  • Very slow performance with queries sent to MS Access

    Hi, folks,
    I'm developing a site with JSP and MS Access and I'm having a lot of DB headaches. Since the site is still under development (not released yet), I'm using very small tables (like 20 rows, 20 columns).
    The first problem was that every time I executed ResultSet.getXXX() it took 50-100 ms. This made a page with little data (200 values read) take more than 30 seconds to display (!!!). I solved this issue changing the old jdbc:odbc for a brand new (trial) Netdirect JDataConnect driver (I include this info mainly because I think that may be helpful for some people out there).
    Now I have significantly reduced time consumption, but still the Statement.executeQuery() sentence has a terrible performance. I've measured 2 to 3 seconds for each query to return. I think that this is not logical for such small tables (What could happen with the 50,000 rows tables that we are planning to use in the future!).
    As always, thanks in advance for any help.

    It's been some days since my last post, but I have got valuable info in this time.
    First, answering your question, Sun's jdbc:odbc bridge only supports one isolation level: TRANSACTION_READ_COMMITED (at least for MS Access), so it's not possible to try to change it.
    However, I've discovered that a good solution to improve performance is to use another driver. Right now I'm using one from Atinav that dramatically improves performance (from 30 seconds to 300 ms).
    The problem with this driver is that it only supports JDBC 1.0, so I can't even use a scrollable ResultSet.
    Right now I think that I would be happy if I found I driver with a performance similar to Atinav's, but also supporting at least JDBC 2.0.
    As always, thanks in advance for any help.

  • Radeonhd: very slow performance with 2D accel enabled

    I have a Radeon HD 4850 in my desktop, and I'm having serious issues trying to get 2D support enabled with the radeonhd driver.
    The driver works fine without EXA and DRI enabled. X seems smooth and snappy. I get a little tearing with X11 and Flash video, but I bought an ATi card; I kind of expect it. I see no discernable difference in performance between the radeon and radeonhd drivers.
    However, if I turn the 2D accel options on, it feels like i'm using a pII or something. Windows tear all over the place, and everything in X slows waay down. I did some cursory seaching and it seems like this problem was solved a while ago and shouldn't show up in the up-to-date packages. I just ran pacman -Syu today; everything is synced.
    I feel like I shouldn't be having these kinds of performance issues, which probably means I missed something somewhere when I was setting stuff up. I'm not a brand-new arch user but this card is new to me and I haven't fiddled with ATi drivers very much.
    Anyone have any suggestions? I'm sort of at a loss here.
    Last edited by f0nd004u (2009-10-08 10:33:13)

    drm-radeon-module-git-r6xx-r7xx refuses to compile, breaks at the end:
    ==> Starting make...
    make DRM_MODULES=radeon.o modules
    make[1]: Entering directory `/tmp/yaourt-tmp-josh/aur-drm-radeon-module-git-r6xx-r7xx/drm-radeon-module-git-r6xx-r7xx/src/drm-build/linux-core'
    sh ../scripts/create_linux_pci_lists.sh < ../shared-core/drm_pciids.txt
    make -C /lib/modules/2.6.30-ARCH/build SUBDIRS=`/bin/pwd` DRMSRCDIR=`/bin/pwd` modules
    make[2]: Entering directory `/usr/src/linux-2.6.30-ARCH'
    CC [M] /tmp/yaourt-tmp-josh/aur-drm-radeon-module-git-r6xx-r7xx/drm-radeon-module-git-r6xx-r7xx/src/drm-build/linux-core/drm_auth.o
    In file included from /tmp/yaourt-tmp-josh/aur-drm-radeon-module-git-r6xx-r7xx/drm-radeon-module-git-r6xx-r7xx/src/drm-build/linux-core/drmP.h:84,
    from /tmp/yaourt-tmp-josh/aur-drm-radeon-module-git-r6xx-r7xx/drm-radeon-module-git-r6xx-r7xx/src/drm-build/linux-core/drm_auth.c:36:
    /tmp/yaourt-tmp-josh/aur-drm-radeon-module-git-r6xx-r7xx/drm-radeon-module-git-r6xx-r7xx/src/drm-build/linux-core/drm_os_linux.h:36: error: conflicting types for 'irqreturn_t'
    include/linux/irqreturn.h:16: note: previous declaration of 'irqreturn_t' was here
    make[3]: *** [/tmp/yaourt-tmp-josh/aur-drm-radeon-module-git-r6xx-r7xx/drm-radeon-module-git-r6xx-r7xx/src/drm-build/linux-core/drm_auth.o] Error 1
    make[2]: *** [_module_/tmp/yaourt-tmp-josh/aur-drm-radeon-module-git-r6xx-r7xx/drm-radeon-module-git-r6xx-r7xx/src/drm-build/linux-core] Error 2
    make[2]: Leaving directory `/usr/src/linux-2.6.30-ARCH'
    make[1]: *** [modules] Error 2
    make[1]: Leaving directory `/tmp/yaourt-tmp-josh/aur-drm-radeon-module-git-r6xx-r7xx/drm-radeon-module-git-r6xx-r7xx/src/drm-build/linux-core'
    make: *** [radeon.o] Error 2
    ==> ERROR: Build Failed.
    Aborting...
    Error: Makepkg was unable to build drm-radeon-module-git-r6xx-r7xx package.
    I'm not really sure what to make of that, and the driver definitely won't work without that module. Anyone got an idea?
    *EDIT: Nevermind, I'm dumb and tired and didn't pay attention to make when I was building this.
    Last edited by f0nd004u (2009-10-08 14:28:58)

  • Very slow performance with 56K modem

    I will be in a location with no high-speed access, so I bought a US Robotics 56K v.92 USB modem for my MacBook. It's taking 5 to 15 minutes to load even simple pages. Anything I can do to optimize performance?

    In addition to what Dan said, see if changing the array size in sqlplus makes a difference. For example,
    set autotrace on
    (do fast query)
    (do slow query)
    set arraysize 100
    (do fast query)
    (do slow query)
    We might see some significant differences in sqlnet roundtrips. On the other hand, things may be all screwy because your rows are so big that it has to do something different. You might get a buffer overflow. How big are your rows (all the columns together, and average size of table2)?
    There may also be some pga strangeness going on. Are you using pga_aggregate_target?
    Are you fetching over a network? Larger amounts of data may be mired in packet splits.
    It may be necessary to trace if the explain isn't obvious.
    Are you doing this in sqlplus or using some other tool?

  • XML Publisher has bad performance with 10 concurrent users.

    PeopleTools version:Tools: 8.48.09
    OS/RDBMS Version*( required for Tools Forums): Oracle 10.2.0.4
    Application type and version:
    Description of the Problem/Question:
    Customer currently testing a process which exposes XML publisher functionality via self service. The process calls an app engine which
    generates an XML file, processed by XML Publisher, and then displayed in the browser window.
    They have found that any more than ten or so users in our test environment (two app servers, one web server per app server) seems to slow
    the process to a halt, even causing some requests to go unprocessed. The bottleneck seems to be at the web server (WebLogic) as the
    database and app server performance metrics are very good, however PeopleSoft Ping suggests that the web server is having trouble.
    production environment has 8 app servers, one web server per app server. Are there any configuration changes we can make to improve
    the serving of PDFs from XML publisher output? Add more web servers per app server? WebLogic java VM heap settings?
    WebLogic Server 8.1 SP5
    Tuxedo: Version 8.1, 64-bit, Patch Level 192
    Any other thoughts on performance degrade with XML Publisher with more than 10 users.
    Are there any configuration changes we can make to improve the serving of PDFs from XML publisher output? Add more web servers per app server?
    Thanks

    There are currently two known operations that are seriously slower in update 10:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6635462
    and
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6652116
    (taken from the release notes).
    You can disable the hardware pipeline to basically go back to the old situation as it was in update 7 if it is giving your problems. I wouldn't know why simple fill actions would be bogging it down though, it smells like something is done wrong in your app.

Maybe you are looking for

  • Problem displaying CheckboxGroup on JFrame

    I was recently assigned the task of creating exams. I am trying to create a CheckboxGroup in a class that was passed the Graphics2D tool. This code compiles with no errors when I call it's method: setLayout(new GridLayout(1, 5));           CheckboxGr

  • Purchase req: allow a customer to view purchase req info via portal

    I would like to know what is the best way to setup a view to allow a customer to view their purchase reqs. Is their a webservice to push info to their portal page or should we setup an ivew and allow them to view PR information. Should I use webservi

  • Issue with Client Authenication Certificates within Bootable Media

    Hi All, I am in the process of deploying SCCM 2012 R2 in our environment parallel to our existing SCCM 2007 R3 environment. So far everything is working well. I have hit, however my first issue. This seems to be related to Client Authentication certi

  • After i convert video files to mov on adobe encoder, my transitions are no loger there

    Hi I have recently started video editing as a hobby on Cs3. When I convert my files so i can post my work on you tube,it converts the footage without my video transitions and i have no idea why?? is there another process i have to take in order for t

  • Chips on macbook pro unibody

    hey guys, I have some chips on my macbook retina unibody , is there anyway I can repair it ? Like paint something of the same color to fill in the chipa