Add table `information_schema.tidb_index_usage` to show the usage statistics of an index
Open
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
Assessment
This issue has not been assessed yet.