Lessons from the Trenches: Indexing a 200M Row Table in MySQL [MySQL part 2]

TL;DR Slow queries? Check your indexes first. Use EXPLAIN and the slow query log to guide indexing decisions. Composite indexes only help if you use leading columns. Covering indexes =

Apr 20, 2025 - 07:47
 0
Lessons from the Trenches: Indexing a 200M Row Table in MySQL [MySQL part 2]

TL;DR

  • Slow queries? Check your indexes first.
  • Use EXPLAIN and the slow query log to guide indexing decisions.
  • Composite indexes only help if you use leading columns.
  • Covering indexes =