pingcap / pingcap/tidb

statistics.Table's `TotalTrackingMemUsage` should be O(1) instead of O(col_num+idx_num)

Open
#52,486 2 comments 0 reactions 1 assignee Claimed by @hawkingrei 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
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

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.