the initialization of the stats consumes much more memory compared with storing it
Open
sig/planner
type/enhancement
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Enhancement
From the above picture, we can see that the primary memory consumer at the time of TiDB's startup is the init of the stats.
But you'll notice that after the initialization finished, the memory dropped a lot. It's not very reasonable since the initialization costs five times compared to when the initial is finished.
This should be improved.
Contributor guide
Assessment
This issue has not been assessed yet.