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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 4: Understanding More Complex Query <strong>Plans</strong><br />

The combined data is passed to a Sort operation, which, at 51%, is the operator with the<br />

highest estimated cost in the plan. Looking at the properties in Figure 4.2, you can see<br />

that the optimizer feels that it has found the best possible plan.<br />

Figure 4.2<br />

You can see this in the Reason for Early Termination Of Statement property, where<br />

it says Good Enough Plan Found. Another interesting point is that you can see, in<br />

the Parameter Compiled Value property, the value that the optimizer used to compile<br />

the plan. Below it is the Parameter Runtime Value, showing the value when this query<br />

was called.<br />

140

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

Saved successfully!

Ooh no, something went wrong!