statistics.Table's `TotalTrackingMemUsage` should be O(1) instead of O(col_num+idx_num)
Open
component/statistics
sig/planner
type/enhancement
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Enhancement
related with https://github.com/pingcap/tidb/issues/52339
It will be a bottleneck when we put the table into our stats cache.
When we put one table into the memory. The `MemUsage` API can be called twice at most.
Contributor guide
Assessment
This issue has not been assessed yet.