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 "Thomas Mueller (JIRA)" <ji...@apache.org> on 2015/02/24 08:37:12 UTC
[jira] [Created] (OAK-2547) "not equals" conditions should be
passed to the index
Thomas Mueller created OAK-2547:
-----------------------------------
Summary: "not equals" conditions should be passed to the index
Key: OAK-2547
URL: https://issues.apache.org/jira/browse/OAK-2547
Project: Jackrabbit Oak
Issue Type: Improvement
Components: query
Reporter: Thomas Mueller
Priority: Minor
With OAK-2529 fixed, conditions of the form "x <> 1" are passed to the index (via the filter condition) as "x is not null". This is sufficient if there are many distinct values for "x", but is bad if there are only few distinct values, and many nodes with value 1.
Therefore, the "x <> 1" condition should be passed to the index directly.
The existing indexes will need to be changed to deal with this case (possibly including the property and ordered index), so that the correct result is returned, and so that the condition is actually used.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)