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

don't allocate the usedStatsInfo for each statements in a session #59019

Open
YangKeao opened this issue Jan 17, 2025 · 0 comments · May be fixed by #59021
Open

don't allocate the usedStatsInfo for each statements in a session #59019

YangKeao opened this issue Jan 17, 2025 · 0 comments · May be fixed by #59021
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@YangKeao
Copy link
Member

YangKeao commented Jan 17, 2025

Enhancement

The memory allocated by GetUsedInfo can be re-used for each statements in a single session. It can improve the performance of index usage a little (but not significantly).

Image

This is the CPU profile.

@YangKeao YangKeao added the type/enhancement The issue or PR belongs to an enhancement. label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant