Veniamin Fichin wrote:

Not sure if this is a bug, but.

So that was not a bug, but my misunderstranding of documentation. It has an example for index addition where it says to use "[EMAIL PROTECTED]" pattern, but as far as I can tell now, it should be "rock/@hard" or "[EMAIL PROTECTED]" or...
With these changes my XPathes works, resulting in not so huge performance improvements; it's about a couple of percents. Another test showed me that queries on collection without indexes work even faster that with them! For example, I used 10 iterations to test and received these milliseconds:


index with pattern /[EMAIL PROTECTED]
4000
3672
3485
3422
3406
3453
3453
3578
3547
3421
----
3543,7

index with pattern /Movie/@id
3985
3640
3500
4343
4875
3625
3797
3718
3375
3281
----
3813,9

no index
3922
3485
3532
3438
3391
3484
3484
3328
3266
3250
----
3458 // fastest result??

   I'm sure I'm doing something stupid.

--
Veniamin Fichin



Reply via email to