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 =
![Lessons from the Trenches: Indexing a 200M Row Table in MySQL [MySQL part 2]](https://media2.dev.to/dynamic/image/width%3D1000,height%3D500,fit%3Dcover,gravity%3Dauto,format%3Dauto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9xbnc23yis1cj3oh7kpa.png)
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 =