pingcap / pingcap/tidb

Add table `information_schema.tidb_index_usage` to show the usage statistics of an index

Open
#49,830 1 comment 1 reaction 0 assignees View on GitHub
type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement

Most of the necessary statistic data has been collected in the `RuntimeStatsColl`. We can collect them into a global structure to show the usages of each index.

- [x] ~~#49831~~
- [ ] #49917
- [x] #49835
- [x] Add GC of dropped schema/table/index
- [x] #50121
- [x] #50261
- [x] #50823
- [x] #50886
- [ ] Remove unused codes from the previous implementation

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.