On Thu, Jul 9, 2009 at 2:23 PM, Daniel Sanchez<[email protected]> wrote: > Hi, > When i have many items (about 5000) in //data/section/ why this query > "//data/section/*...@ap:idsync='95']" is more slow that this "//element(*, > ap:seccion)[...@ap:idsync='95']" ?
This is because the path is not indexed, so if there is a path location step in the query, the query execution has to additionally access the repository to filter out results inside that path. See also http://markmail.org/message/d2e2v7lo6vx6t7my Path queries were improved lately (for 1.4.9 and 1.5.x I think): https://issues.apache.org/jira/browse/JCR-1872 Regards, Alex -- Alexander Klimetschek [email protected]
