jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: Performance query
Date Thu, 09 Jul 2009 12:49:36 GMT
On Thu, Jul 9, 2009 at 2:23 PM, Daniel Sanchez<inadsan@gmail.com> 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
alexander.klimetschek@day.com

Mime
View raw message