-
Notifications
You must be signed in to change notification settings - Fork 6k
Open
Labels
component/statisticssig/plannerSIG: PlannerSIG: Plannertype/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.
Description
Enhancement
Some facts of the current TiDB:
- We've introduced
ANALYZE TABLE PREDICATE COLUMNS
andANALYZE TABLE COLUMNS
to collect parts of table columns to improve the speed of analyze and optimize the collected statistics' memory usage. - When we use this two ways to collect statistics, the stats of one column that is not a predicate or not specified in
COLUMN_LIST
will not be deleted. - If one SQL marks that column as stats needed, we'll load its outdated stats into memory.
- In many cases, the loading procedure will not be a problem. But if those columns are quite large. It will affects the performance of sync load.
- And there'll be the same problem for change value of the variable
tidb_analyze_skip_column_types
Metadata
Metadata
Assignees
Labels
component/statisticssig/plannerSIG: PlannerSIG: Plannertype/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.