Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi plan for the same query is allowed, but which one is used is undefined. #3

Open
lemontree-mxh opened this issue Apr 25, 2020 · 0 comments

Comments

@lemontree-mxh
Copy link

The current implementation allows us create multi plan for the same query, and allow us enable all of them. and letter which one is choose is not well defined in looup_plan_by_query_hash.

How about to add a new index

create unique index sr_plans_query_hash_idx on sr_plan(query_hash) where (enable=true);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant