How to make existsNode faster?

Hi,
i am trying to search in a schema based (object-relational) xml document. With small files (~ 100 Bytes) anything
is alright and the search terminates after one or two seconds. But when I do the same existsNode query on bigger
files (e.g. 1 MB) it takes too much time (don`t know how much because I killed the process after 20 minutes). Can I
do something to gain performance?
Dirk.

schema is:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
     <xsd:complexType name="PurchaseOrderType">
          <xsd:sequence>
               <xsd:element name="PONum" type="xsd:decimal"/>
               <xsd:element name="Company">
               <xsd:simpleType>
                    <xsd:restriction base="xsd:string">
                         <xsd:maxLength value="100"/>
                    </xsd:restriction>
               </xsd:simpleType>
               </xsd:element>
               <xsd:element name="Item" maxOccurs="2147483647">
               <xsd:complexType>
                    <xsd:sequence>
                         <xsd:element name="Part">
                              <xsd:simpleType>
                              <xsd:restriction base="xsd:string">
                                   <xsd:maxLength value="1000"/>
                              </xsd:restriction>
                              </xsd:simpleType>
                         </xsd:element>
                         <xsd:element name="Price" type="xsd:float"/>
                    </xsd:sequence>
               </xsd:complexType>
               </xsd:element>
          </xsd:sequence>
     </xsd:complexType>
     <xsd:element name="PurchaseOrder" type="PurchaseOrderType"/>
</xsd:schema>
The XPath is varying dependent from user input.

Similar Messages

  • Slow Phone 4s with ios8!! How to make it faster?

    Slow Phone 4s with ios8!! How to make it faster? After upgraded ios8.1.1, my iPhone 4s Facebook become very slow response and always hand. Whastapp having same problem! Very lagging with safari too! It is really regret to upgrade since many peoples say upgrade will have this issue always

    Slow Phone 4s with ios8!! How to make it faster? After upgraded ios8.1.1, my iPhone 4s Facebook become very slow response and always hand. Whastapp having same problem! Very lagging with safari too! It is really regret to upgrade since many peoples say upgrade will have this issue always

  • How to make script faster

    Hi,
    I have a table with huge volume of data. I am doing following activity using SQL script
    1). alter table my_tab add new_col NUMBER(10);
    2). update my_tab set new_col= 50;
    3). alter table my_TAB modify new_col NOT NULL;
    4). Create index on my_tab(new_col);
    Above scrip is taking around 10 hours to excecute.
    Could any one please suggest how to make it fast.
    Thanks.

    amit_hum wrote:
    Hi,
    I have a table with huge volume of data. I am doing following activity using SQL script
    1). alter table my_tab add new_col NUMBER(10);
    2). update my_tab set new_col= 50;
    3). alter table my_TAB modify new_col NOT NULL;
    4). Create index on my_tab(new_col);
    Above scrip is taking around 10 hours to excecute.
    Could any one please suggest how to make it fast.
    Thanks.You haven't told us your database version.
    You haven't shown us the details of your table structure or an example of the data, or even how many rows is a "huge volume of data".
    Without proper information we would just be guessing and that doesn't help anybody.

  • How to DELETE millions of records. How to make it fast.

    Hi
    I need to delete near abt 134 millions of records from tables.
    How to make it faster? any trick , any settings.
    I am using Oracle 9i on Linux box.
    If suppose i use TRUNCATE . does it deletes all objects defined over tables like constraint, indexes etc.
    Thanks,
    Kuldeep

    hi
    SQL> create table te as select * from all_objects;
    Table created.
    SQL> create index te_ind on te ( owner);
    Index created.
    SQL> truncate table te;
    Table truncated.
    SQL> select index_name , status from user_indexes where table_name = 'TE';
    INDEX_NAME                     STATUS
    TE_IND                         VALID
    SQL> create table ti as select * from all_objects;
    Table created.
    SQL> create index ti_ind on ti ( owner);
    Index created.
    SQL> drop table ti;
    Table dropped.
    SQL> select index_name , status from user_indexes where table_name = 'TI';
    no rows selected
    SQL>regards
    Taj

  • How to make Mavericks faster on an "older" MacBook Pro?

    I have a late 2011 MacBook Pro, 2.2 GHz core i7 with 4 GB of RAM. I recently wiped my computer and restored to factory settings because it was getting slow, then I upgraded to Mavericks and it is even slower. It freezes often and takes a long time to load things. Is there any way to make it faster or improve it's function?

    Oh wow, I must be REALLY out of it, haha, don't know how I missed that.
    Hardware Information:
              MacBook Pro (15-inch, Late 2011)
              MacBook Pro - model: MacBookPro8,2
              1 2.2 GHz Intel Core i7 CPU: 4 cores
              4 GB RAM
    Video Information:
              Intel HD Graphics 3000 - VRAM: 384 MB
              AMD Radeon HD 6750M - VRAM: 512 MB
    System Software:
              OS X 10.9.1 (13B42) - Uptime: 0 days 4:2:0
    Disk Information:
              TOSHIBA MK5065GSXF disk0 : (500.11 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Dalek Caan (disk0s2) /: 499.25 GB (466.87 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-8A8 
    USB Information:
              Apple Inc. FaceTime HD Camera (Built-in)
              Iomega Iomega Select HDD 500.11 GB
                        EFI (disk1s1) <not mounted>: 209.7 MB
                        FAT-32 (disk1s2) /Volumes/FAT-32: 400.11 GB (48.79 GB free)
                        Mac (disk1s3) /Volumes/Mac: 99.66 GB (27.63 GB free)
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Computer, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Kernel Extensions:
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [loaded] com.google.keystone.daemon.plist 3rd-Party support link
    Launch Agents:
              [loaded] com.google.keystone.agent.plist 3rd-Party support link
    User Launch Agents:
              [loaded] com.valvesoftware.steamclean.plist 3rd-Party support link
    User Login Items:
              iTunesHelper
              Steam
    Internet Plug-ins:
              googletalkbrowserplugin: Version: 4.9.1.16010 3rd-Party support link
              QuickTime Plugin: Version: 7.7.3
              o1dbrowserplugin: Version: 4.9.1.16010 3rd-Party support link
              npgtpo3dautoplugin: Version: 0.1.44.29 - SDK 10.5 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 1.9 - SDK 10.9
              AppleAVBAudio: Version: 2.0.0 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    3rd Party Preference Panes:
              None
    Bad Fonts:
              None
    Old Applications:
              /Library/Printers/EPSON/InkjetPrinter2/Utility/UT4
                        Epson Printer Utility 4:          Version: 9.14 - SDK 10.5 3rd-Party support link
                        EpsonSuppliesTool4:          Version: 8.61 - SDK 10.5 3rd-Party support link
              MiroVideoConverter:          Version: 2.6 - SDK 10.0 3rd-Party support link
    Time Machine:
              Time Machine not configured!
    Top Processes by CPU:
                  10%          Skype
                   5%          WindowServer
                   3%          VLC
                   2%          EtreCheck
                   1%          coreaudiod
    Top Processes by Memory:
              182 MB          Google Chrome Helper
              131 MB          VLC
              123 MB          Google Chrome
              119 MB          Skype
              102 MB          Mail
    Virtual Memory Information:
              42 MB          Free RAM
              1.49 GB          Active RAM
              1.45 GB          Inactive RAM
              960 MB          Wired RAM
              1.17 GB          Page-ins
              2 MB          Page-outs

  • How to make qry fast

    I have a small query
    select * from x order by b asc
    its very slow how can i make it fast as i have to order .

    "Small" is a vague, relative term. It's the volume of data that matters more I would think, and I'm guessing your table is "large" for the hardware you are running on. In any case, if you are truly doing the select to "push it in some target table" then I would say first off, you don't need the "order by" in this query. Secondly, if you are really trying to load data to a table, perhaps it is the insert that you don't show here that is the problem?
    Check out /*+ APPEND */ and /*+ PARALLEL */ hints just for grins.
    MJG

  • How to make this faster?? read millions of record from txt file

    Hi there,
    I got an issue. There is a txt file contains 2 million records, I also got another file contains over 10000 numbers. Now, I need to compare this 10000 numbers with that 2 million records if any records contains a number which belongs to 10000 number set, i retrieve this record and keep it. later on, when i finish the comparison i'll write all the result records into a txt file.
    What kind of data structure shall i use to keep the records and numbers? how to make the comparison quicker? Any idea will do!
    Thanks!

    if i were to do it, i will insert bout the records into the db. then do an sql statement on the two tables to get the results. Then get the rs and output it to another text file.
    just my opinion. not sure if this is faster.
    Message was edited by:
    clarenceloh

  • How to make Portal faster?

    Hi all,
    The portal on which i am working has become very slow.It is NW04S Portal.
    It is taking a lot of time for processing.
    Can any one tell me <b>how to make my portal</b> <b>faster</b> by cleaning or any stuff.
    I vl award points if it is helpful to me.
    Thanks in advance.
    Message was edited by:
            Satish Dhanalakoti
    Message was edited by:
            Satish Dhanalakoti

    Hi,
    Refer this link
    https://websmp101.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000061538&_SCENARIO=01100035870000000112&_OBJECT=011000358700000590032004E
    Regards,
    Senthil K.

  • How to make mac faster

    my mac has become very slow in starting and during shut down. can anyone help to make it faster?

    How slow?

  • How to make a faster connection to a database?

    Hi there,
    I have a created sth like an ebook reader for html books. I have a highlight tool and a textfield to keep some notes for each page. When the user goes from one page to there other I do connect and disconnect to the database 4 times. One to save the highlights of the page, one to save the notes and another to load these in characteristics to my new page.
    Acutally I do sth like this:
          //Save the highlights and the notes of the current page
          no.saveNotes();
          hi.saveHighToDB();
           // Load and display specified page.
           ViewClass.getEditorPane().setPage(pageUrl);
           //Load the highlights and the notes of the new page
           hi.loadingMakeHighlight();
           no.LoadNotes();This make my program very slow. It takes along time to load the new page. The whole program, database and book run locally so it should be faster 'cause afterwards I want to put in the book and the database on a server.
    Is there a way to make less connections or sth to make it faster??
    Is it better/faster to make 1 connection to save the 2 things and 1 to load them? The saveNotes() and LoadNotes() are in the same class and the saveHighToDB() and loadingMakeHighlight() are in a different one. How I can solve this?
    Thanks in advance

    You need a connection pool so you can recycle connections. This will speed things up tremendously!

  • Painfully slow startup - any suggestions how to make it faster?

    Hi Everyone,
    Just thought I'd ask people - my 17" iMac G5 1.9GHz PowerPC with 512MB ram is painfully slow at start-up. Seems to take forever! Does anyone know how I could clear a lot of rubbish from my computer and someone make it faster.
    Would anyone recommend a complete re-install - would that improve speed?
    Any help appreciated, cheers,
    Mark

    Mark, you can clear space on your drive and speed it up by moving a lot of sound and video files to a DVD, or even better, to an external; Firewire drive that you can partition and also use as a clone boot disk.
    Go through your applications folder and look for stuff that you never use, then get AppZapper to remove all traces of them. You can also use Monolingual to remove the tons of extra languages installed with Word and OS X, just make sure you uncheck English and any other language you might use.
    Hope some of this helps,
    Miriam

  • Slow Equuim A200 - How to make it faster?

    Help!
    My Equium A200 has gone really slow. Keep getting not responding messages on internet.
    Even typing this is very slow. Im not very knowledgeable about computers but do keep security updated.
    Please help me if there is anything I can do.

    There are a lot options to make Windows faster.
    I can give you some examples:
    1. Check the msconfig: start =&gt; run =&gt; msconfig.
    At startup you can see all programs who started with the notebook. Remove the tick from the programs, they should not startup with Windows.
    2. Defragment your HDD: click on my computer =&gt; right click on the HDD =&gt; properties =&gt; tools =&gt; Defragment now.
    Defragmentation is a process that reduces the amount of fragmentation in file systems.
    Which OS (operating system) do you use? If you use Windows Vista, install SP1. If you use Windows XP, install SP2 or SP3.
    In my opinion Windows OneCare is not really good. Choose an other security suite. I use for a lot of years Kaspersky. I had never problems with it and the system runs fast.
    To check how much RAM do you have, make a right click on my computer =&gt; properties and there you can see it.
    If everything doesn&rsquo;t help, you should reinstall Windows with the Recovery image from Toshiba. All drivers and tools are including.
    But if you do this, backup your data first. The HDD will completely erased.

  • How to make real fast animations using CS5

    Hi,
    I need to make some fast moving animations like moving an image from one corner to another corner, how can I do that?

    If you need guaranteed framerates and playback speed, move on to the world of video and compositing tools. There is no way to enforce rendering speed of animated GIFs and the format doesn't have a fixed framerate. Not to mention the absence of motion blur rendering and otehr things in PS itself. That aside, simply use less frames to make things move faster, it just won't look smooth in PS because of what I mentioned...
    Mylenium

  • Write to files - how to make it faster?

    I have a program that creates a lot of html files and I've noticed that creating them is the bottleneck.
    Would anyone have an idea about how I could speed up the process? Here is my code:
        public void writeToFile() {
            openFileConnection();
            try {
                bw.write(pageStr.toString()); // pageStr is the file content (StringBuffer)
                bw.flush();
            } catch (Exception e) {
                System.out.println("Error while writing html file: " + e);
            closeFileConnection();
        private void openFileConnection() {
            try {
                bw = new BufferedWriter(new FileWriter(filePath));
            } catch (Exception e) {
                System.out.println("Error while creating html file: " + e);
        private void closeFileConnection() {
            try {
                if (bw != null) {
                    bw.close();
            } catch (Exception e) {
                System.out.println("Error while closing the writer: " + e);
        }This part of the program is repeated many times. Most of the files are very small.
    I have measured the time that the process above spends. Here are the results for creating 1416 files (ms):
    open     2312     avg     1
    write     16     avg     0
    flush     427     avg     0
    close     20726     avg     14
    Total process 30 s of which writeToFile operation 23 s.
    Especially I'm wondering why closing takes so long.
    (In the test environment I'm using Win2000 and JDK1.4.2.)

    Creating file with an average of 14 ms each is likely to be limited by the speeed of your disk. Make sure the write cache for the disk is enabled.
    Just because you have a PC disk which the sales people called "fast" doesn't mean it will support high performance. Even having multiple disks is unlikely to help you if you have windows which doesn't exploit multiple disks very well IMHO. If you have a disk subsystem with a non-volaile write cache you should see a dramatic jump in performance. (And a jump in the cost :)

  • How to make insert faster?

    Hi,
    11.1.0.7.3 on Linux Redhat 5 64bit. My database does an average 150 transaction per second 10am to 4pm. Most of them are insert into two partitioned tables 1 row at a time. The tables have only essential indexes with no FK. The disk array is 1+0, not many disks though. SAS disk, if I'm not wrong. I asked for SSD but didn't happen.
    Main fg events are CPU 80% and commit (log file sync) 19%. Main bg event is "log file parallel write" 86%. Obviously the rate of redo flushes to disk is very high and disk is having problem keeping up.
    How can I improve the situation?

    AliD wrote:
    Hi Hemant,
    Actually CPU usage is not very high.. It's a high percentage of DB time, not system usage.
    Begin Snap: 2849 30-Nov-10 10:00:35
    End Snap: 2855 30-Nov-10 16:00:46
    Elapsed:   360.18 (mins)    
    DB Time:   47.46 (mins)
    Event         Waits         Time(s)   Avg wait (ms) % DB time
    log file sync 3,419,446   555        0                   19.48
    Event                      Waits        Total Wait Time (s)    % bg time
    log file parallel write   3,422,047  542                         86.25I might look paranoid, but at this point the application is running at 10% provisioned capacity and numbers are looking good. I want to prepare it for when more customers kick in.Well, you need to get a realistic load to find out what will happen. There are so many variables, and application usage patterns are where the issues will arise. Remember, multiversion concurrency effects are where you will find contention that will make things go downhill fast, whether they are memory latch chains or undo I/O thrashing. Advisors can only deal with one variable, and not necessarily well at that.
    Assuming your app is perfect, of course.
    http://method-r.com/downloads/doc_details/44-thinking-clearly-about-performance helps, there is no substitute for accurate testing.

Maybe you are looking for

  • Lost contacts in address book on iMac

    Hi. I have iMac w/OS X 10.7.5. When we upgraded to this version, it seems like I lost all of our contacts in the ADDRESS BOOK APPLICATION on our desktop. I do have an external hd that I use for time machine.  I went back to January 2011 to restore th

  • Help! full up hard disk

    Sorry to ask such a dumb question but my 250 GB hard disk is now nearly full up. Thing is I don't know why. I have a few photos and and all my music on i tunes but apart from that there should be loads of space. Can anyone suggest what may be filling

  • Urgent :Fetch Portal URL in WebDynpro code

    Hi techgurus, I want to fetch portal URL/ Portal system ID in my webdynpro code? Please help! Regards, Abhishek

  • A sample server specification for Oracle RAC environment

    Hi,     Our project has decided to change the single instance database to a RAC environment. Can any one provide a sample server specification to be analysed based on our project. For example minimum processor/RAM.... Thanks

  • Laptop windows 8 screen/taskbar error

    this happens to my computer every 12hours-2days. i can do a quick fix but this getting insane i have had my toshiba laptop for a couple of years now and it has been doing this since i got it. if it helps get an answer to fix it i open a file explorer