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 "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2013/12/09 21:30:07 UTC

[jira] [Updated] (OAK-1229) XPath queries of the form [@x=1 or @x=2] should not use union

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

Alex Parvulescu updated OAK-1229:
---------------------------------

    Fix Version/s: 0.13

> XPath queries of the form [@x=1 or @x=2] should not use union
> -------------------------------------------------------------
>
>                 Key: OAK-1229
>                 URL: https://issues.apache.org/jira/browse/OAK-1229
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: query
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>             Fix For: 0.13
>
>
> In OAK-882, conditions of the form "x=1 or x=2" are automatically converted to "x in(1, 2)", and an index is used.
> In OAK-1116, xpath queries of the form "... or ..." are automatically converted to union, to allow using an index.
> As [~alex.parvulescu] found out, because of OAK-1116, XPath queries with "@x=1 or @x=2" are now converted to union, even thought it would be better if they are converted to "x in(1, 2)", so no union is used.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)