[xquery-talk] xquery & web server in browser

Robert Koberg rob at koberg.com
Thu Jun 18 20:06:38 PDT 2009


On Jun 18, 2009, at 11:19 AM, Liam Quin wrote:

> On Thu, Jun 18, 2009 at 11:53:13AM +0000, Florent Georges wrote:
>> Robert Koberg wrote:
>>> Why? To me, the best thing about XQuery is that it can run
>>> natively (and more efficiently than the more encompassing
>>> XSL)
>
> The XQuery implementations in SQL databases such as IBM DB2
> and Oracle can go directly to the underlying data store,
> bypassing the SQL layer.
>
>>  Well, I think it depends (I mean XQuery more efficient
>> than XSLT.)  If the query use dynamic dispatching of nodes
>> (aka pattern matching) or grouping, I would expect XSLT to
>> be more efficient.
>
> I don't think there's any difference here.
>
> If you're using apply-templates, that's native in XSLT and
> you have to write your own in XQuery, so that may make a
> difference.  Efficiency is something you have to measure,
> though, not speculate upon, really... and all I can say
> there is I've found two orders of magnitude between XQuery
> runtimes for the same query on the same data, but that's not
> uncommon for SQL queries either.

Sorry, I was not clear with what I meant by running natively. I mean  
that a transformation (XQuery or XSL) can occur straight on the XML DB  
with converting to something the processor (XQuery or XSL) can consume.

best,
-Rob


More information about the talk mailing list