Thomas Mueller created OAK-1229:
-----------------------------------
Summary: 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
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#6144)