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

Re: XQuery -- Reinventing the Wheel?

  • From: Uche Ogbuji <uche.ogbuji@f...>
  • To: xml-dev@l...
  • Date: Thu, 22 Feb 2001 06:06:51 -0700 (MST)

xquery pattern matching
> > I certainly don't see current XSLT implementations suddenly becoming query
> > engines, performance just isn't good enough. However, a specialized XSLT
> > engine that implements a slightly modified spec and has an optimizer to
> > utilize indexes might be a much simpler way to go. Regardless it would
> > certainly be able to leverage the vast majority of the work already put
> > into XSLT vs. starting from scratch on XQuery implementations. The more
> > I think about it the more I find it a compelling idea but I just have to
> > wonder if it can be made to perform well enough.
>
> And this is where my particular expertise runs out. The XQuery people must
> think their language has the ability to perform well as a query language.

Performance IMO doesn't have so much to do with the structure of the
query language.  It has much more to do with the disposition of the data
in the
back end.

> If XSLT can't perform well in comparison to XQuery, then it would be due to
> some combination of the pattern-matching template rules and the XPath axes
> that don't have abbreviated syntaxes (BTW, this is a particularly weird way
> to specify a language, historically tied to XQL, etc.).

I don't understand this.  As any use of Google illustrates, pattern
matching is not intrinsically slow.  There are many techniques,
particularly hierarchical indexes (or search tries) for providing
efficiency in this area.  Yes, I as an XSLT implementor haven't yet
implemented such, but as I seem to have to remind people often these days,
XSLT is only about a year old.  We can hardly expect extraordinary polish
from the implementations.

How long would it take to get polished XQuery implementations?  Almost
certainly longer than it would take to have the first XSLT implementation
with logarithmic pattern-matching performance (I'd guess the most
efficient today is n log n, which is a big deal for scalability) or high
scalability of document().


-- 
Uche Ogbuji                               Principal Consultant
uche.ogbuji@f...               +1 303 583 9900 x 101
Fourthought, Inc.                         http://Fourthought.com
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python


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.