O'Reilly logo

SQL Server DMVs in Action: Better Queries with Dynamic Management Views by Ian W. Stirk

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Index DMVs

 

This chapter covers
  • Background on the importance of indexes
  • Code snippets identifying aspects of suboptimal indexes
  • Discussions on how to optimize indexes
  • Holistic approach to index usage

 

Indexes are used to improve the performance of data retrieval, to order data, and sometimes to enforce uniqueness. It’s the first of these uses, improving data retrieval, that I’ll focus on in this chapter. We’ll use the DMVs to identify indexes that may be suboptimal or unnecessary, as well as indexes the optimizer would like to use but are missing. All these aspects of index optimality can affect the performance of your SQL queries, sometimes significantly. I’ll provide discussions within each code snippet on index optimization. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required