You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Nikolay Georgiev <ge...@gmail.com> on 2011/09/01 10:03:54 UTC

XPath vs JR API Performance

I am wondering which would be faster,

XPath access or API Code for searching for data in the JackRabbit nodes?

Do you have experience with performance tests?

My logic is that API Code would be faster because I know what I am
searching, I have already references to it and with less or a little
bit more Java Code I can access it.
In contrast an XPath query should be first parsed, then the nodes
should be found, then the data queried and returned in objects which
wrap the data.

What do you think?

Nikolay