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

RE: Concerned about the increasing reliance on XPath

  • From: Liam R E Quin <liam@w3.org>
  • To: David Lee <dlee@calldei.com>
  • Date: Sat, 07 May 2011 19:18:43 -0400

RE:  Concerned about the increasing reliance on XPath
On Sat, 2011-05-07 at 15:53 -0400, David Lee wrote:
[...]
> I was presuming that Roger was asking about non-XML DB or more standard
> XPath implementations.

I wouldn't go so far as to say "standard" but I think his use case may
primarily be the constraints in XSD.

> The *vast majority* of *full* XPath implementations that I am aware of
> require all data to be in memory.

Hmm, I specifically said XPath 2... I'm not so sure I have the same
experience as you, although if you count by deployed seats rather than
by implementations, it might be a different matter - libxml, and various
implementation used by Web browsers, are all XPath 1; Saxon has XPath 2
support and until recent streaming work, required the document to be in
memory.  On the other hand db2, Oracle, Microsoft sql server, qizx,
basex, dbxml, marklogic, eXistDB, sedna,... are all examples where the
entire document doesn't need to be in memory, although this is generally
transparent to the person writing queries.

> And when they are not many XPath statements cannot be implemented in
> streaming mode without some very advanced coding more typical in XML DB's ..
> in which case indexes take the place of memory.

Yes - but "in memory" and "streaming" are of course very different.

And yes, indeed, it's easy to write XPath expressions that can't be
streamed, just as you can write C code that can't easily be
optimized :-)  This was a big issue for XQuery development - there were
streaming implementations, and there's a tension between having
everything streamable and having a language human coders are willing to
use :)  This is why the xpath axes are optional in XQuery, even though
in the end even the streaming implementations did support them.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/



[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-2013 All Rights Reserved.