[
https://issues.apache.org/jira/browse/OAK-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Mueller resolved OAK-1372.
---------------------------------
Resolution: Fixed
Revision 1569740
> XPath queries with both path and property restrictions are slow
> ---------------------------------------------------------------
>
> Key: OAK-1372
> URL: https://issues.apache.org/jira/browse/OAK-1372
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: query
> Reporter: Thomas Mueller
> Assignee: Thomas Mueller
> Fix For: 0.18
>
>
> XPath queries such as
> {noformat}
> /jcr:root/a//b/c/d/*[@type='1' or @type='2']
> {noformat}
> are slow because they don't currently use an index on the property "type".
> They are converted to a join, with selectors a joining b joining c and so on.
> Maybe it would be better to join in reverse order, or the query engine might
> need to reverse join order in this case (once an index is used).
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)