Conceptual
Login

Query Execution Plan

A query plan is a tree of physical operators — scans at the leaves, joins/sorts/aggregates above — through which rows flow upward, typically pulled one batch at a time by each parent. The same SQL can compile to many different plans; the plan, not the SQL text, determines performance.

Questions this Concept answers

  • Why does knowing that a plan exists change how you approach a slow query?