Professional Documents
Culture Documents
Execution Plan
Agenda
Introductions
The Query Optimizer
Commonly used operators
Blocking and non-blocking operators
Parse
Bind
Optimize
Execute
UPDATE
INSERT
DELETE
Table scan
Clustered
Index Scan
NonClustered
Index Scan
Clustered
Index Seek
NonClustered
Index Seek
Key Lookup
Nested Loop
Join
Merge Join
Hash Join
Small tables
Table variables
CTE functionality
Heavily inserted tables, minimal selects/updates/deletes
Eliminating lookups
RID Lookup
Key Lookup
Usually used when one table in the join is relatively small and
the other is rather large, and at least one table (larger) is
properly indexed.
If those conditions are met generally outperforms hash join
operations