Inside Microsoft® SQL Server™ 2005: Query Tuning and Optimization
by Kalen Delaney, Sunil Agarwal, Craig Freedman, Ron Talmage, Adam Machanic
Summary
In this chapter, we examined the role of optimization in query processing and discussed some of the steps that the optimizer goes through in coming up with an execution plan for your queries. Keep in mind that for all but the simplest queries, there are many possible plans that the optimizer could evaluate. In order to be able to optimize in a reasonable amount of time, SQL Server’s optimizer may stop searching for better plans as soon as it finds one that it considers “good enough.” The vast majority of the time, the SQL Server query processor works extremely well. The optimizer generally chooses satisfactory query plans, and most applications just work. For those occasions where problems do arise, we looked at a variety of issues and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access