You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "angela (JIRA)" <ji...@apache.org> on 2014/02/18 09:44:23 UTC

[jira] [Updated] (OAK-1372) XPath queries with both path and property restrictions are slow

     [ https://issues.apache.org/jira/browse/OAK-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

angela updated OAK-1372:
------------------------

    Component/s: query

> 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.17
>
>
> 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)