pingcap / pingcap/tidb

the initialization of the stats consumes much more memory compared with storing it

Open
#46,139 0 comments 0 reactions 0 assignees View on GitHub
sig/planner type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
image
image

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.