Details
-
Task
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Duplicate
Description
The sys schema in MySQL 5.7 and later has the schema_unused_indexes view:
These views display indexes for which there are no events, which indicates that they are not being used. By default, rows are sorted by schema and table.
This view is most useful when the server has been up and processing long enough that its workload is representative. Otherwise, presence of an index in this view may not be meaningful.
The schema_unused_indexes view has these columns:
- object_schema
The schema name.
- object_name
The table name.
- index_name
The unused index name.
https://dev.mysql.com/doc/refman/5.7/en/sys-schema-unused-indexes.html
Some users would like this functionality in MariaDB as well.