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/11/14 12:56:00 UTC
[jira] [Comment Edited] (OAK-6776) Correctly use
IndexPlan.supportsPathRestrictions
[ https://issues.apache.org/jira/browse/OAK-6776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16194639#comment-16194639 ]
Thomas Mueller edited comment on OAK-6776 at 11/14/17 12:55 PM:
----------------------------------------------------------------
http://svn.apache.org/r1811334 (trunk)
still missing is: lucene indexes should return multiple plans, if some indexes do support path restrictions and some not
was (Author: tmueller):
http://svn.apache.org/r1811334 (trunk)
still missing is: lucene indexes should return multiple paths, if some indexes do support path restrictions and some not
> Correctly use IndexPlan.supportsPathRestrictions
> ------------------------------------------------
>
> Key: OAK-6776
> URL: https://issues.apache.org/jira/browse/OAK-6776
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: query
> Reporter: Thomas Mueller
> Assignee: Thomas Mueller
> Fix For: 1.8, 1.7.12
>
>
> 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)