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

java and xpath

  • From: c b <cindyloo_home@y...>
  • To: xml-dev@l...
  • Date: Tue, 1 May 2007 07:56:57 -0700 (PDT)

java and xpath
hi there-
I have a data-oriented XML schema db that contains mostly scheduling information.. I have attempted to use javax.xml.* library to query the db, with abysmal performance.
 
statements such as
xpath.evaluate(doc,"//sdp:service//sdp:trip) or even the pre-compiled version
xexpr.evaluate(nodelist)
 
are an order slower than the DOM call getTagByName("trip").
 
don't even get me started on queries like "//sdp:service//sdp:trip[id='1'][type='north']"
 
 
I see there are many xpath enabled libraries.. is there one in which xpath utilization is much faster? at least on par with the DOM calls? I've looked on the web and it seems that query processing optimizaiton is an academic pursuit of it's own...
 
Should I rather be using DOM's new implementation of XPath ?  should I be using an RDBMS rather than an xml db at all if query performance is going to be so slow?   many questions..  I am planning to do some additional benchmarking, but I'd rather not re-invent the wheel... If someone could point me to an old post or even better
answer my primary question directly, that would be great.
thanks,
Cindy


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.