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 2017/10/03 07:28:00 UTC

[jira] [Created] (OAK-6776) Correctly use IndexPlan.supportsPathRestrictions

Thomas Mueller created OAK-6776:
-----------------------------------

             Summary: Correctly use IndexPlan.supportsPathRestrictions
                 Key: OAK-6776
                 URL: https://issues.apache.org/jira/browse/OAK-6776
             Project: Jackrabbit Oak
          Issue Type: Bug
            Reporter: Thomas Mueller
            Assignee: Thomas Mueller
             Fix For: 1.8


Right now, IndexPlan.supportsPathRestrictions (introduced in OAK-6734) is used in the query engine for some kind of mixed "rule based" and "cost based" [query optimization|https://en.wikipedia.org/wiki/Query_optimization].

I think the current implementation isn't correct, as (for example) a query with multiple indexes will now use the wrong index in some cases (for example property index, even if the cost of the Lucene index is lower).

Also, if there is a Lucene index with supportsPathRestrictions, and one without, right now always the one with supportsPathRestrictions is used. This is probably better right now, but once OAK-6735 is resolved, this should be fixed as well.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)