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 non-prepared plan cache (Stage 1) #36598

Closed
Reminiscent opened this issue Jul 27, 2022 · 1 comment · Fixed by #36844, #37028 or #46504
Closed

Support non-prepared plan cache (Stage 1) #36598

Reminiscent opened this issue Jul 27, 2022 · 1 comment · Fixed by #36844, #37028 or #46504
Assignees
Labels
epic/plan-cache sig/planner SIG: Planner type/feature-request Categorizes issue or PR as related to a new feature.

Comments

@Reminiscent
Copy link
Contributor

Feature Request

Is your feature request related to a problem? Please describe:

TP queries can get lots of performance benefits from Plan Cache, but the current TiDB Plan Cache can only support Prepare/Execute Statements. Most of our users are still using general queries to access TiDB instead of Prepare/Execute. So if Plan Cache can support general queries, these users can gain some performance benefits as well.

Describe the feature you'd like:

When we execute the general query, we can skip the parser and optimizer phase to directly get the physical plan from the plan cache. That can save more time for the TP queries.

Teachability, Documentation, Adoption, Migration Strategy:

The detail design will be posted later.

@fzzf678
Copy link
Contributor

fzzf678 commented Jul 27, 2022

/assign @fzzf678

ti-chi-bot pushed a commit that referenced this issue Jul 28, 2022
ti-chi-bot pushed a commit that referenced this issue Aug 3, 2022
@Reminiscent Reminiscent reopened this Aug 8, 2022
@qw4990 qw4990 changed the title Support non-prepared plan cache Support non-prepared plan cache (Stage 1) Apr 19, 2023
ti-chi-bot bot pushed a commit that referenced this issue Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment