1015
Chapter 45: Indexing Strategies
45
Performance data for each path, listed in Table 45-1, was captured by watching the
T-SQL ➪ SQL:StmtCompleted and Performance ➪ Showplan XML Statistics Profi le events in
Profi ler and examining the Query Execution Plan.TABLE 45 -1 Query Path PerformancePath
No Path Desc Execution Plan Rows Cost Reads Missing IndexDuration
(ms)Rows
per ms1 Fetch All C Ix Scan 72,591 .485 526 1,196 60.71
2Clustered
Index SeekC Ix Seek 1 .003 2 7 .143 Range Seek
Query
(narrow)C Ix Seek
(Seek keys
start-end)11. 0 0 3 3 13. 8 5Range Seek
Query (wide)C Ix Seek
(Seek keys
start-end)72,591 .485 526 1,257 57.734 Filter by
Non-Key
ColumnC Ix Scan Æ
fi lter
(predicate)85 .519 526 NC
(include all
columns)170 .325Bookmark
Lookup
(Select *)NC Ix Seek
Æ BML9.03729 226 .04Bookmark
Lookup
(Select clus-
tered key,
non-key col)NC Ix Seek
Æ BML9 .037 29 128 .076Covering
Index
(narrow)NC Ix Seek
(Seek
Predicate)9.0032 30 .30Covering
Index (wide)NC Ix Seek
(Seek
Predicate)1,105 .005 6 106 10.46NC Seek
Selecting
Clustered
Key (narrow)NC Ix Seek
(Seek
Predicate)9.0032 46 .20NC Seek
Selecting
Clustered
Key (wide)NC Ix Seek
(Seek
Predicate)1,105 .0 0 4 4 4 6 24.02Continuesc45.indd 1015c45.indd 1015 7/31/2012 10:16:39 AM7/31/2012 10:16:39 AM
http://www.it-ebooks.info