On 03/28/2012 01:49 PM, Ronny Möbius wrote:
I'm now interested in your general opinion about this: Is it surprising, that the XQuery implementation than the lxml/python one (For me it is, as I thought the indices etc. created when importing the data should decrease computational affords in searching the tree)? Is there some catch in my approach? May the reason be bad designing the query?
Howdy, Ronny --
I can't speak for the BaseX team, but I can certainly say that the specific queries in use make a very, very big difference.
(Personally, by the way, I'm in the process of moving as much logic as I can into code running in BaseX simply because using XQuery 3.0 makes it hard to go back to the minimal XPath 1.0 implementation that libxml2, and thus lxml, supports).