September 2007
Intermediate to advanced
448 pages
13h 52m
English
—Kalen Delaney and Craig Freedman
| In this chapter: | |
| Compilation and Optimization | 199 |
| Detecting Problems in Plans | 218 |
| Monitoring Query Performance | 221 |
| Query Improvements | 225 |
| Query Processing Best Practices | 273 |
| Summary | 275 |
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 ...
Read now
Unlock full access