How can I speed up the extract() function queries on XML

Hi,
Please I need some light on xml and indexes.
This is my case:
I use Oracle 9i R2.
I have a table with some rows containing some few xml documents (each row contains a big xml document).
Given a value for an attribute of a tag, I want to extract the entire section within the tags.
Example:
<MYTAG number="1">
.....big stuff here
</MYTAG>
<MYTAG number="2">
.....big stuff here
</MYTAG>
<MYTAG number="x">
.....big stuff here
</MYTAG>
So for number=2 I would like to extract from the document the xmltype
<MYTAG number="2">
.....big stuff here
</MYTAG>
I created an index and have followed all the steps from the XML Database Developers Kit manual. Then I would use extrac() as the document says.
Now some doubts arised:
Are these text/xml indexes only useful for getting the rowid of my document?
I mean, if I select 'x' from the table looking for some value, then the index is used. But when I use extract in the select to get the section I look for, the query gets really low, specially when xml documents are big. I think when I have only row with one document, getting the rowid is not the problem, but the extraction from the document is.
Is the extraction process faster because of the index?
For what I see, the index only helps me to find the rowid, but then Oracle has to deal with the very big document inside the row. At that point Its oracle against a big text processing and index has nothing to do.
How can I speed up the extraction of the section?
If there any other index or tool for help extraction to be faster?
I would appreciate to know what can I do. I need help on this.
Thanks in advance!

Well,
- What indexes, if any, already exist?
- What do the functions rl and nice do?
- What are the current query plans?
- How restrictive are the various predicates?
- What version of Oracle?
Justin

Similar Messages

  • HT1349 It takes hours (2-3 or more) to download updates to various software.  I use my iPhone in personal hotspot mode paired to my laptop to do this.  How can i speed up the downloads.

    It takes hours (2-3 or more) to download updates to various software.  I use my iPhone in personal hotspot mode paired to my laptop to do this.  How can i speed up the downloads?

    It's a function of your iPhone's data speed, which is a function of your physical location and your carrier.  Talk to your carrier about increasing your data speed (probalby unlikely) or get dedicated internet to connect your computer to, i.e. cable, fiber, etc.

  • HT5953 How can I speed up the "start speaking" feature in iBooks? (System Preferences Dictation and speech does not do anything to the speech speed.) The rate is a bit to slow.

    How can I speed up the "start speaking" feature in iBooks? (System Preferences Dictation and speech does not do anything to the speech speed.) The rate is a bit to slow.

    Hi, I had the same problem you described, and I noticed that there are two ways of activating text to speech on iBook for Mac, with different speed results (at least on my MacBook Pro Retina display)
    On your iBook you can select the text and and then click on > More> Start speaking,  and you will get a certain speed, which tends to be too slow.
    But you will get the speed you had selected with "Go to System Preferences>Dictation and Speech>Text to speech. In there is a slider to adjust the speaking rate." if you use the TOP MENU (next to the black apple)  under Edit>Speech>Start Speaking. I also learned that under System Preferences>Dictation and Speech>Text to speech, there is an option for a shortcut which is very helpful. And you can change Key. Hope this was helpful.

  • HT2404 How can I speed up the updates for my apps on my iphone 4 ?

    How can I speed up the updates for my apps on my iphone 4?  They take forever and/or a window says that the update will be available when I connect my iphone to itunes on my computer which doesn't help.

    I don't have virus protection on my iphone so this answer in not applicable

  • I have an iPod Touch 4g with 4.1 software, but it takes forever to update the software, how can I speed up the process?

    I have an iPod Touch 4g with 4.1 software, but it takes forever to update the software, how can I speed up the process?

    Nothing you can do. Presently the Apple servers are overloaded because of iOS 6.

  • How can I speed up the queries

    if I have this two queries, how can create indices to speed up the queries.
    1)
    select nice(a.sub), nice(a.obj)
    from triples a
    where a.pred = rl(’mond:capital’)
    and a.sub in (select b.obj
    from triples b
    where b.pred = rl(’mond:borders’)
    and b.sub = rl(’wiki:Spain’));
    2)
    SELECT nice(b.sub), nice(b.obj)
    FROM triples a, triples b
    WHERE a.sub = rl(’wiki:Spain’)
    AND a.pred = rl(’mond:borders’)
    AND a.obj = b.sub
    AND b.pred = rl(’mond:capital’);

    Well,
    - What indexes, if any, already exist?
    - What do the functions rl and nice do?
    - What are the current query plans?
    - How restrictive are the various predicates?
    - What version of Oracle?
    Justin

  • How can I speed up the connection to the database?

    I am running a JSP application with regular JavaBeans not EJB and connecting to the database through these beans. The connection is set to stay in memory as long as the bean is in session. However when I am running more than 7 sql statements seperatly the execution of the page slows down.
    I have tried using connection pooling but doesn't help much.
    I am not using the JDBC setting in JRUN, I am connecting through the jdbc.odbc drivers provided by the JDK. Basically coded the connection and the connection pool.
    Is there something else that can be done to speed up the execution of the page?
    Thanks in advance

    Thank you all for your input I was trying to work this project to learn JSP so I am not looking at purchasing any drivers right now. That is the reason why I stuck to the JDBC-ODBC Bridge. Are there any other drivers available for MS SQL Servers that are free.
    Jschell,
    That suggests you are taxing the system. It could be >connections. It could also be network, cpu, bus, etc. It >could also be memory, if your app starts swapping to >the hard drive it will get substantially slower.How can i figure out which of the above (i.e. memory, cpu, connections, network) are causing the problem.
    (Presumably you explicitly close your >ResultSets/Statements/Connections when you are >done with them.)You are right about that yes I am closing them at the end of the session, which I think should be after all of the SQL's get executed but I could be wrong it might be openeing a new connection for each SQL which inturn might be the reason for this whole problem. I will take a look into that.
    Thank you all once again.

  • How can I speed up the execution of my VI?

    HI,
    I have a pretty complicated VI which revolves around one big picture control on the front panel, on which I display all sorts of data, most coming from one big global array. As I run the VI it becomes exceptionaly slow in a hurry and does not react to mouse clicks for 5-10 seconds. I have read up and down this website especially the optimizing performance section, I was just hoping someone could tell me what are the really big problems with a block diagram that are the cause of this lagging?

    You probably have to split your program into several functional elements
    that communicate with each other, rather than simply one sequential list of
    operations continuously looping.
    So one element checks for user input say every 100ms, responds to it and
    sends messages to the other functional elements which then act on the
    change. If you use queues to communicate between, then you can send "high
    priority" events by placing them at the front of the queue.
    Alternatively your problem may be far simpler than I imagine. Check your
    system memory use as the program runs; if you're running away allocating
    lots of memory all the time then it'll hammer the machine and all will grind
    to a halt. If system memory use continuously increases and all other
    applications also
    get hit and respond slowly, then you'll have to look
    through and see where memory is being accumulated.
    Helper wrote in message
    news:[email protected]..
    > HI,
    > I have a pretty complicated VI which revolves around one big picture
    > control on the front panel, on which I display all sorts of data, most
    > coming from one big global array. As I run the VI it becomes
    > exceptionaly slow in a hurry and does not react to mouse clicks for
    > 5-10 seconds. I have read up and down this website especially the
    > optimizing performance section, I was just hoping someone could tell
    > me what are the really big problems with a block diagram that are the
    > cause of this lagging?

  • How can I speed up the load time?

    My website is completed and I am happy with everything.
    Everything except the time it takes to load. All the images have
    been optimized. What can I do to speed up the load time?
    http://www.liquidfirefishing.com

    On Tue, 6 Jan 2009 01:29:41 +0000 (UTC), "Team Liquid Fire"
    <[email protected]> wrote:
    >My website is completed and I am happy with everything.
    Everything except the
    >time it takes to load. All the images have been
    optimized. What can I do to
    >speed up the load time?
    >
    http://www.liquidfirefishing.com
    Typically, your budget is around 50k for the first page,
    total including
    all external files. When you add up all the external files
    you have used,
    like images, Flash, external JavaScript, etc., you have 98
    separate HTTP
    requests in that page. Just looking at the headers, you have
    about 80k in
    requests and responses, not even counting the actual files.
    Browsers are limited to just a few simultaneous streams, so
    most of your
    files wind up having to wait until the prior files download.
    Included among your 98 requests, you have these six files
    that each
    individually exceed that total budget:
    headerLinked.swf 2,621,578 bytes
    2007_fishing_video_web.flv 95,989,898 bytes
    2008_aoy_graphic.png 65,582 bytes
    jensen_beach.png 59,105 bytes
    liquid_fire_logo_new.png 142,277 bytes
    DanSchaad.png 379,111 bytes
    Your entire total is 99,816,652 bytes. I've put a complete
    breakdown here:
    http://testing.apptools.com/newsgroup/liquidfire.php
    Files are requested from the server in the order they are
    encountered in
    the source code. They are displayed in the linked page in the
    order in
    which they are requested. You can see that some of the huge
    files are
    requested fairly early in the sequence. That means that those
    files and
    their extended download times are occupying streams and
    preventing other
    files from being downloaded more quickly.
    My suggestion would be to really trim down the content on the
    page. Break
    it up into several pages. Dump the huge Flash movie at the
    top of the
    page. Optimize the four .png's above.
    Gary

  • Magic Mouse - How can I slow down the scrolling function on Mac OS X?

    I'm a designer. In Illustrator and othe programms, I  try to scroll but its to fast so I flip  through the pages. I want to slow down the scrolling function of my mouse but where can I find it in OS X 10.7?

    Ahh,
    Just the App not the support folder I'll be bound.
    8:23 PM Wednesday; August 15, 2007

  • How can I speed up the Welcome Screen on Illustrator CC 2014?

    I have updated to Illustrator CC 2014.
    I find that the welcome screen takes a long time to load. It is far from convenient.
    Is there anything I can do to speed up the welcome screen?
    Any help will be appreciated.
    System info:
    OS: Windows 7
    CPU: Xeon 3.2GHZ
    RAM:16GB
    System : 64bit

    Hi ImmerTech,
    You can disable the welcome screen permanently by following below steps if you are on mac machine other wise scroll down to bottom
    and check the option  "Don't Show Welcome Screen Again".
    Go to Applications/Adobe Illustrator CC 2014/Adobe Illustrator.app
    When you get to "Adobe Illustrator.app" you have to hold down the Control key
    The Control key reveals, among other options, "Show Package Contents" Select that, and then the "Contents>MacOS>CEP>extensions" folder and removed "com.illustrator..welcome" folder.
    Hope this helps.
    Regards,
    Sumit Singh

  • How can I speed up the time it takes to deliver mail to lists I build in Workgroup Manager?

    My research group uses Workplace Manger to create mailing lists that we use to email each other. The lists work correctly, but take a long time - when an email is sent from any computer to the mailing address we create (like [email protected]), it takes anywhere from 10 minutes to hours for that email to actually be sent to the people on the list. We currently have about 20 people on the list. The server is a group computer with permanent internet access. Are there any settings I could change or update to make this delivery faster?

    Nothing you can do. Presently the Apple servers are overloaded because of iOS 6.

  • How can i speed up the playback of streaming video on websites?

    when trying to watch tv shows from streamining sites the video plays in slow motion or doesnt play at all....what can i do to fix this?

    In general, an action takes as long as it takes - there can be a variety of things happening in the background.  The Quit Application action sends commands to the specified application, so mostly it depends on how fast the application does its thing.

  • How can I speed up the loading of text in a text gallery?

    I have a tekst gallery with 60 rows. The cells have on average 70 characters (< so about upto this point). When scrolling though the gallery, it sometimes takes several seconds before the tekst appears on screen (is loaded?). Is it because of the number
    of characters, or the number of rows? Is there a way to speed this up?

    Wouter,
    I created a small app to mimic your scenario. I have 100 rows of text data in Excel--each row is 200 characters long. I have the data bound to a gallery with the following controls:
    4 labels that display the text data
    A slider whose default value is set to Len(ThisItem!Text) -- simply trying to increase dependencies and computation
    A label that displays the length of the text
    Using touch/swipe, I am seeing immediate refresh--absolutely no lag. Even when I grab the scrollbar and force it all the way to the end, I am seeing sub-second response. I am unable to repro the slowdown you described.
    It would be great if you can share your app file so I can investigate further. Thanks in advance for your help.

  • How Can I speed  up the results on my JSP page with the help of Caching.

    I am generating a dropdown listbox by merging an xml file with a style sheet(xsl).
    This list box comes up fine without any problems. Now, I am adding some advanced
    logic to the
    style sheet (xsl) to use the same xml file in a more efficient way. This time
    the generation
    of the list box is taking much longer (upto 25 seconds) although I get the results
    I want.
    Is there any way I could speedup this process by using weblogics caching. I know
    the process is slowing down
    due to the code in the stylesheet. Will caching resolve this issue?. I tried
    using
    <wl:cache> </wl:cache> on the jsp page generating this listbox but found no improvement.
    Any help will be very much appreciated.

    turn off your phone, unplug your router, leace it off for 30 seconds, and then power it back on and turn the iphone back on

Maybe you are looking for