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 "Jukka Zitting (JIRA)" <ji...@apache.org> on 2013/05/15 19:25:15 UTC

[jira] [Commented] (OAK-824) Query engine: automatic expansion of "x=1 or x=2" to "(x is not null) and (x=1 or x=2)"

    [ https://issues.apache.org/jira/browse/OAK-824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13658557#comment-13658557 ] 

Jukka Zitting commented on OAK-824:
-----------------------------------

Such conversions are highly specific to particular index implementations, so to me it seems like the best place to do something like this would be in the index implementations rather than in the main query engine.
                
> Query engine: automatic expansion of "x=1 or x=2" to "(x is not null) and (x=1 or x=2)"
> ---------------------------------------------------------------------------------------
>
>                 Key: OAK-824
>                 URL: https://issues.apache.org/jira/browse/OAK-824
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, query
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>
> Queries with conditions of the type "x=1 or x=2" currently don't use an index. An index (on property existance) could be used if the condition is automatically expanded to "(x is not null) and (x=1 or x=2)". This should be relatively easy to implement in the query engine (I hope).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira