© Jason Strate 2019
J. StrateExpert Performance Indexing in SQL Server 2019https://doi.org/10.1007/978-1-4842-5464-6_9

9. Index Maintenance

Jason Strate1 
(1)
Hugo, MN, USA
 

Like anything in life, indexes require maintenance. Over time, the performance benefits of indexes can wane or, through data modifications, their sizes and the underlying statistics can drift and bloat. To prevent these issues, indexes must be maintained. If you do so, your database will remain a lean, mean query-running machine.

When it comes to maintenance, there are five areas to consider:
  • Index fragmentation

  • Heap bloat and forwarding

  • Columnstore fragmentation

  • Statistics

  • In-memory statistics

Each plays a key role in maintaining a properly indexed and well-performing database.

This chapter ...

Get Expert Performance Indexing in SQL Server 2019: Toward Faster Results and Lower Maintenance 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.