Inside Microsoft® SQL Server™ 2005: Query Tuning and Optimization
by Kalen Delaney, Sunil Agarwal, Craig Freedman, Ron Talmage, Adam Machanic
Detecting Problems in Plans
If you’ve read Chapter 3, you should have a basic understanding of how to read query plans and understand most of the basic operators. Now, we’ll discuss some of the problems and pitfalls that you may encounter. Keep in mind that there is no one-size-fits-all approach to diagnosing problems with query plans. Queries do not perform as expected for many different reasons. Each situation is unique, and there are few if any absolute rights or wrongs. An operator may be the best choice in one scenario and a poor choice in another. Moreover, before we can evaluate whether a query plan is good or bad, we also need to understand what our goal is or what the problem is that we are trying to solve. For example, we might be ...
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