Skip to content

Commit

Permalink
Update index-advisor.md
Browse files Browse the repository at this point in the history
Co-authored-by: Roger Song <[email protected]>
  • Loading branch information
qw4990 and songrijie authored Jan 8, 2025
1 parent 551054f commit 680adf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index-advisor.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ FROM information_schema.cluster_tidb_index_usage
WHERE last_access_time IS NULL
OR last_access_time < NOW() - INTERVAL 30 DAY;

-- Find indexes with low efficiency
-- Find the indexes that are always scanned with over 50% of total records.
SELECT table_schema, table_name, index_name,
query_total, rows_access_total,
percentage_access_0 as full_table_scans
Expand Down

0 comments on commit 680adf9

Please sign in to comment.