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

Skip collecting statistics for some wide column types such as JSON/TEXT/BLOB #44725

Closed
xuyifangreeneyes opened this issue Jun 16, 2023 · 0 comments · Fixed by #44653
Closed
Labels
component/statistics sig/planner SIG: Planner type/enhancement The issue or PR belongs to an enhancement.

Comments

@xuyifangreeneyes
Copy link
Contributor

Enhancement

Currenly, analyze would collect about 11000 samples into TiDB memory. If the table has some wide column types such JSON/TEXT/BLOB, the samples can take up much memory and even lead to OOM. However, the statistics collected for JSON/BLOB are not very important since the optimizer rarely use them. Hence, we hope to skip collecting statistics for some wide column types such as JSON/TEXT/BLOB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/statistics sig/planner SIG: Planner type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
1 participant