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

Prepared Plan Cache support limit ? #28286

Closed
dbsid opened this issue Sep 23, 2021 · 1 comment
Closed

Prepared Plan Cache support limit ? #28286

dbsid opened this issue Sep 23, 2021 · 1 comment
Assignees
Labels
epic/plan-cache sig/planner SIG: Planner type/enhancement The issue or PR belongs to an enhancement.

Comments

@dbsid
Copy link
Contributor

dbsid commented Sep 23, 2021

Enhancement

Currently plan cache does not support query including limit ? clause, just in case small or large numbers should not shared the sample execution plan.

For real-world core-banking application, the number for limit ? is consistent. This kind of query ranks top executions, it makes sense to to cache plan and reduce the compilation cost.

An example query select * from account where sub_acct_no = ? and sign_status = ? limit ?

I'll suggest to add a config to lift this limitation.

@dbsid dbsid added the type/enhancement The issue or PR belongs to an enhancement. label Sep 23, 2021
@qw4990 qw4990 added the sig/planner SIG: Planner label Oct 8, 2021
@qw4990
Copy link
Contributor

qw4990 commented Jan 4, 2023

Duplicated with #38491

@qw4990 qw4990 closed this as completed Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic/plan-cache sig/planner SIG: Planner type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

No branches or pull requests

3 participants