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.

Listing 5.17<br />

Chapter 5: Controlling <strong>Execution</strong> <strong>Plans</strong> with Hints<br />

LEFT JOIN Production.ProductDescription AS pdr<br />

ON pmpdc.ProductDescriptionID = pdr.ProductDescriptionID<br />

LEFT JOIN Production.Culture AS c<br />

ON c.CultureID = pmpdc.CultureID;<br />

Based on your knowledge of the data, you're confident that you've put the joins in the<br />

correct order. Figure 5.13 shows the current execution plan.<br />

Figure 5.13<br />

Again, this plan is far too large to review on the page, but it gives you a good idea of its<br />

overall structure. Figure 5.14 shows an exploded view of just a few of the tables and the<br />

order in which they are being joined.<br />

193

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

Saved successfully!

Ooh no, something went wrong!