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

planner: non-prepared plan cache supports queries with more than 200 parameters #44823

Closed
qw4990 opened this issue Jun 20, 2023 · 1 comment · Fixed by #44829
Closed

planner: non-prepared plan cache supports queries with more than 200 parameters #44823

qw4990 opened this issue Jun 20, 2023 · 1 comment · Fixed by #44829
Labels
affects-7.1 epic/plan-cache sig/planner SIG: Planner type/enhancement The issue or PR belongs to an enhancement.

Comments

@qw4990
Copy link
Contributor

qw4990 commented Jun 20, 2023

Enhancement

Currently, if the total number of parameters in a query is more than 200 parameters, it cannot hit the non-prepared plan cache (see https://docs.pingcap.com/tidb/stable/sql-non-prepared-plan-cache#usage-restrictions).
Better to make it configurable, some users may need to cache these queries.

@qw4990
Copy link
Contributor Author

qw4990 commented Jun 20, 2023

Use set @@tidb_opt_fix_control = "44823:1000" to set the maximum number to 1000, and 0 means no limitation there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.1 epic/plan-cache sig/planner SIG: Planner type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants