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

Support SQL Plan Management #8935

Closed
yu34po opened this issue Jan 4, 2019 · 3 comments
Closed

Support SQL Plan Management #8935

yu34po opened this issue Jan 4, 2019 · 3 comments

Comments

@yu34po
Copy link
Contributor

yu34po commented Jan 4, 2019

Feature Request

The optimizer chooses a plan based on several environmental factors, such as statistics, optimizer parameters, schema definitions and so on. Once the environment changes, we cannot guarantee that the newly optimized plan is always better than the old plan. Therefore we need to provide ways to bind the plan for applications that cannot take the risk of a changed plan.

Describe the feature you'd like:
support the SQL plan management. With the help of it, we can force the optimizer to choose a certain plan without modifying the SQL text.

Describe alternatives you've considered:
No

Teachability, Documentation, Adoption, Migration Strategy:
@yu34po will work on this issue.

@yu34po
Copy link
Contributor Author

yu34po commented Jan 4, 2019

we have complete code develop, now work in unit and integration test,
will complete featuer in 3 PRs
1.support global create/drop/show bind cmd and store data in system table and global cache
2.for every query sql , try to match global hint cache and add hint to original sql
3.session cache support

@shenli
Copy link
Member

shenli commented Jan 6, 2019

@yu34po Good job!

@zz-jason
Copy link
Member

zz-jason commented Mar 2, 2020

The core function of SQL Plan Management is supported by now, let's close this issue.

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

No branches or pull requests

4 participants