30.06.2013 Views

SQL Server Execution Plans - Red Gate Software

SQL Server Execution Plans - Red Gate Software

SQL Server Execution Plans - Red Gate Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 2: Graphical <strong>Execution</strong> <strong>Plans</strong> for Basic Queries<br />

Associated with each operator icon, and displayed below it, is an estimated cost, assigned<br />

by the optimizer. From the relative estimated cost displayed, we can identify the three<br />

most costly operations in the plan, in descending order.<br />

1. The Index Scan against the Person.Address table (31%).<br />

2. The Hash Match join operation between the Person.Person table and the output<br />

from the first Hash Match (21%).<br />

3. The other Hash Match join operator between the Person.Address table and the<br />

output from the Nested Loop operator (20%).<br />

There are multiple problematic operators in this query since, in general, we're better off<br />

with Seek operations instead of Scan operations. Figure 2-16 shows the properties of the<br />

most expensive operator, as defined by the estimated costs.<br />

Figure 2.16<br />

85

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!