Read The Plan Before Chasing Index Myths
Use EXPLAIN to understand join order, scan choices, and cardinality assumptions before making schema or indexing changes.
Compare Intent With Actual Cost
The main question is whether the planner behavior matches your mental model. If it does not, fix the query assumptions first.
Use Narrow Test Cases
Prefer focused filters and representative samples when validating expensive logic. Performance work is easier when you isolate one risk at a time.