[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How to let XPATH be faster


mozilla xpath document.query
Another option is to store the document in a native XML database. When 
the document is inserted into the database, it is parsed and indexes are 
built, so that queries can be executed much faster.

Whether this is appropriate for you depends on your situation. For 
example, if you query the document repeatedly over time, it probably is. 
On the other hand, if you receive the document, query it ten times, and 
then discard it, building the indexes may cost more than the time saved 
on the queries.

For a (somewhat current) list of native XML databases, see:

    http://www.rpbourret.com/xml/ProdsNative.htm

Note also that the current version of Oracle and the next versions of 
SQL Server and DB2 (both in beta) also support this functionality.

-- Ron

Li Yuejiong(John) wrote:

> Hi,
> 
> I have a large XML file which is more than 4000 elements. I want to
> evaluate so many xpath expressions on this xml file and find the xpath
> function consume too many time. Is there any way to fast it? 
> 
> I use xalan 2.6.0.


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.