How to Find the Number of Times an Index is Used on a Table in TiDB

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tidb如何查找一个表上索引被使用的次数

| username: tidb狂热爱好者

How to find the number of times an index is used on a table in TiDB? There is a method in MySQL, but I couldn’t find it in TiDB.

| username: xfworld | Original post link

Dongxu specifically made a tool for this scenario, but I don’t remember the address…

| username: Kongdom | Original post link

Isn’t the content in this post applicable to TiDB?

| username: Running | Original post link

Same question here, with this I can optimize the index structure.