Chapter 4. Troubleshooting Query Performance

Kalen Delaney and Craig Freedman

In this chapter:
Compilation and Optimization199
Detecting Problems in Plans218
Monitoring Query Performance221
Query Improvements225
Query Processing Best Practices273
Summary275

As mentioned in Chapter 3, “Query Execution,” the SQL Server query processor consists of two components: the query optimizer and the query execution engine. In Chapter 3, we looked at details of many different types of query plans and discussed the process of query execution. In the first part of this chapter, we’ll talk about the query optimizer, which is responsible for generating good query plans. The optimizer includes subcomponents to gather statistics, perform cardinality estimation using ...

Get Inside Microsoft® SQL Server™ 2005: Query Tuning and Optimization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.