pingcap / pingcap/tidb

Be more aggresive when evict the memory of statistics when hit its memory limit

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

Description

## Enhancement
The bootstrap will not initialize the struct `statistics.Column` and `statistics.Index`, keeping them as empty pointers.
But the eviction still reserves the pointers.

We can also set it to nil when evicting.

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.