Most slow MySQL queries announce themselves if you know where to look. You do not need a monitoring dashboard or a database consultant β you need EXPLAIN , and five signals in its output that each point at a different fix.
1. type: ALL β the full table scan
This is the loudest signal. MySQL read every row of the table no matter what your WHERE said. On a lookup table with 50 rows, nobody cares. On a table with 500,000 rows, this is your whole problem. The fix is almost always an index on the column in the WHERE clause. Run the query again after adding it and watch type move to ref .
2. key: NULL β no index was used at all
Different from signal 1 in one important way: sometimes possible_keys lists an index and key is still NULL . That means the index exists and MySQL refused it. The usual reason is the query itself β a function wrapped around the indexed column, like DATE(created_at) = '2026-11-20' , or a comparison against a value of the wrong type.β¦