MySQL查询冗余索引和未使用过的索引操作
MySQL5.7及以上版本提供直接查询冗余索引、重复索引和未使用过索引的视图,直接查询即可。
查询冗余索引、重复索引
select * sys.from schema_redundant_indexes;
查询未使用过的索引
select * from sys.schema_unused_indexes;
MySQL5.7及以上版本提供直接查询冗余索引、重复索引和未使用过索引的视图,直接查询即可。
select * sys.from schema_redundant_indexes;
select * from sys.schema_unused_indexes;