Q. My XPath query is too slow.
A. Quotes from mailist regarding XPath query performance can be found here:
http://www.nabble.com/Explanation-and-solutions-of-some-Jackrabbit-queries-regarding-performance-td15028655.html
Performance of XPath queries is much better with 1.5 snapshot.