Loading…
EXPLAIN shows the query execution plan — how the database will retrieve your data.
EXPLAIN QUERY PLAN SELECT * FROM events WHERE user_id = 3;
This tells you:
If you see SCAN TABLE, your query might be slow on large datasets. An index could speed it up dramatically.
| Term | Meaning | Speed |
|---|---|---|
| SCAN | Reads every row | 🐌 Slow |
| SEARCH USING INDEX | Uses index lookup | ⚡ Fast |
| COVERING INDEX | Index has all needed columns | ⚡⚡ Fastest |
Find all sessions where page_views exceed 10:
Downloading SQL engine… (one-time)
This runs entirely in your browser and is cached for next time.