[
https://issues.apache.org/jira/browse/OAK-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13892072#comment-13892072
]
Thomas Mueller commented on OAK-1372:
-------------------------------------
Revision 1564753 (WIP)
> 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
> Reporter: Thomas Mueller
> Assignee: Thomas Mueller
> Fix For: 0.16
>
>
> 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)