You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by "Lars Hofhansl (JIRA)" <ji...@apache.org> on 2019/01/30 07:01:00 UTC

[jira] [Commented] (PHOENIX-5112) Simplify QueryPlan selection in Phoenix.

    [ https://issues.apache.org/jira/browse/PHOENIX-5112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16755760#comment-16755760 ] 

Lars Hofhansl commented on PHOENIX-5112:
----------------------------------------

Simple first change. Avoid any more pre-filtering in addPlan and sort all plans instead.
(this is assuming that the cost of sorting the plans is trivial compared to generating them)

> Simplify QueryPlan selection in Phoenix.
> ----------------------------------------
>
>                 Key: PHOENIX-5112
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5112
>             Project: Phoenix
>          Issue Type: Improvement
>            Reporter: Lars Hofhansl
>            Priority: Major
>         Attachments: 5112-master.txt
>
>
> Brought to light in part in PHOENIX-5109, plan selection in Phoenix is too complicated with its logic spread over multiple areas. My recent changes let most index through the initial filters and next step is to put all the logic in {{QueryOptimizer.orderPlansBestToWorst}}.
> One exception is plans with global indexes for queries with uncovered queries, those should still be handled in {{addPlan}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)