Skip collecting statistics for some wide column types such as JSON/TEXT/BLOB #44725
Labels
component/statistics
sig/planner
SIG: Planner
type/enhancement
The issue or PR belongs to an enhancement.
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.
The text was updated successfully, but these errors were encountered: