Skip to content
engineering workbench.by StudyPort Academy
All glossary terms

GLOSSARY · A WORD, UNPACKED

query plan

the sequence of execution steps generated by a database query optimizer to execute a given SQL statement.

A little more detail

Viewed using EXPLAIN or EXPLAIN QUERY PLAN, a query plan reveals whether the database engine intends to perform a full sequential table scan, traverse a specific B-tree index, or execute nested loop or hash joins. Examining the plan is the primary diagnostic technique for detecting missing indexes and performance bottlenecks.

See it in practice

These lessons pair the idea with examples you can change and run.