jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davide Giannella (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OAK-6897) XPath query: option to _not_ convert "or" to "union"
Date Tue, 04 Jun 2019 15:35:11 GMT

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

Davide Giannella updated OAK-6897:
    Fix Version/s: 1.16.0

> XPath query: option to _not_ convert "or" to "union"
> ----------------------------------------------------
>                 Key: OAK-6897
>                 URL: https://issues.apache.org/jira/browse/OAK-6897
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: query
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Trivial
>             Fix For: 1.14.0, 1.16.0
> Right now, all XPath queries that contain "or" of the form "@a=1 or @b=2" are converted
to SQL-2 "union". In some cases, this is a problem, specially in combination with "order by
@jcr:score desc".
> Now that SQL-2 "or" conditions can be converted to union (depending if union has a lower
cost), it is no longer strictly needed to do the union conversion in the XPath conversion.
Or at least emit different SQL-2 queries and take the one with the lowest cost.

This message was sent by Atlassian JIRA

View raw message