Skip to content

Commit

Permalink
make ci happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreoxmt committed Mar 7, 2024
1 parent 678f819 commit 4a3c843
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions information-schema/information-schema-tidb-index-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@ summary: Learn the `TIDB_INDEX_USAGE` information_schema table.

# TIDB_INDEX_USAGE

<CustomContent platform="tidb">

Starting from v8.0.0, TiDB provides the `TIDB_INDEX_USAGE` table. You can use `TIDB_INDEX_USAGE` to get the usage statistics of all indexes on the current TiDB node. By default, TiDB collects these index usage statistics during SQL statement execution. You can disable this feature by turning off the [`instance.tidb_enable_collect_execution_info`](/tidb-configuration-file.md#tidb_enable_collect_execution_info) configuration item or the [`tidb_enable_collect_execution_info`](/system-variables.md#tidb_enable_collect_execution_info) system variable.

</CustomContent>

<CustomContent platform="tidb-cloud">

Starting from v8.0.0, TiDB provides the `TIDB_INDEX_USAGE` table. You can use `TIDB_INDEX_USAGE` to get the usage statistics of all indexes on the current TiDB node. By default, TiDB collects these index usage statistics during SQL statement execution. You can disable this feature by turning off the [`instance.tidb_enable_collect_execution_info`](https://docs.pingcap.com/tidb/v8.0/tidb-configuration-file#tidb_enable_collect_execution_info) configuration item or the [`tidb_enable_collect_execution_info`](/system-variables.md#tidb_enable_collect_execution_info) system variable.

</CustomContent>

```sql
USE INFORMATION_SCHEMA;
DESC TIDB_INDEX_USAGE;
Expand Down

0 comments on commit 4a3c843

Please sign in to comment.