[xquery-talk] search mechanism

John Snelson jsnelson at sleepycat.com
Thu Apr 6 18:50:09 PDT 2006

Michael Kay wrote:
>>  	for $id1doc in //text//abstract[contains(.,'Peter')]
> Do be aware that path expressions involving multiple "//" operators can be
> very expensive. This depends on the implementation of course, but it's
> likely to be much better to spell the path out explicitly if you can.

Unless you evaluate XQuery using indexes, in which case the less 
explicit paths, and the more "//" operators that you use, the better.


John Snelson, Berkeley DB XML Engineer
Sleepycat Software, Inc

Contracted to Sleepycat through Parthenon Computing Ltd

More information about the talk mailing list