Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit 56c88ac

Browse files
committed
Do not take the mysql schema in to account for unused indexes.
1 parent 4cd9af7 commit 56c88ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

views/p_s/schema_unused_indexes.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ SELECT object_schema,
2828
FROM performance_schema.table_io_waits_summary_by_index_usage
2929
WHERE index_name IS NOT NULL
3030
AND count_star = 0
31+
AND object_schema != 'mysql'
3132
ORDER BY object_schema, object_name;

0 commit comments

Comments
 (0)