Microsoft® SQL Server® 2012 Bible

(Ben Green) #1

1023


Chapter 45: Indexing Strategies


45


FIGURE 45-10
The nonclustered index does not contain one or more columns that the query requests. To
solve the query, SQL Server must perform a bookmark lookup (the dashed line) from the
nonclustered index to the base table, which is a clustered index in this example. This illustra-
tion shows a single row. In reality it’s often hundreds or thousands of rows scattered
throughout the clustered index.

IX_WorkOrder_ProductID PK_WorkOrder_WorkOrderID

FIGURE 45-11
The query execution plan shows the bookmark lookup as an Index seek being joined with a
key lookup.

c45.indd 1023c45.indd 1023 7/31/2012 10:16:41 AM7/31/2012 10:16:41 AM


http://www.it-ebooks.info
Free download pdf