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. ...

Get SQL Server DMVs in Action 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.