78 seconds to 2: the covering index that fixed our slowest page
7.1 relevance
Score Breakdown
technical depth 8
novelty 6
actionability 9
community 4
strategic 5
personal 8
Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.
Database covering index optimization story, highly actionable for performance tuning.
Summary
A covering index with six columns in precise order cut a reporting query from 78 seconds to 2 seconds on a MySQL table with ~700k rows. The fix eliminated 20,000 random I/O lookups by including filter columns (moved_to_history, deleted_at) and the GROUP BY column (user_id) in the index, enabling the engine to satisfy the query entirely from the index without touching the clustered table. The index was deployed live using MySQL's INPLACE algorithm to avoid table locking.