reduce memory consumption of stats data #16572
Labels
component/statistics
epic/memory-management
sig/execution
SIG execution
type/enhancement
The issue or PR belongs to an enhancement.
Development Task
When TiDB bootstrap, it reads the stats data of all tables:
tidb/statistics/handle/bootstrap.go
Line 300 in a0c7407
When there're lots of tables in a TiDB cluster, caching all the stats data into a single TiDB server may cause a high memory consumption when the TiDB server bootstrapped. It increases the OOM risk of the TiDB server.
Here are things we need to do:
See also #17200
The text was updated successfully, but these errors were encountered: