Contact us
Insights

Finding unused reporting indexes

Indexes for reports that no longer run still slow every write. How to find them safely, without dropping one month end needs.

The problem

Indexes for reports nobody runs

Reporting indexes are added when a report is slow. The report is later rebuilt in Power BI, replaced by a new system, or simply forgotten, but its index stays. It still costs time on every write, space on disk, and minutes in every backup and maintenance job. The risk is removing one that looks unused but that a quarterly or year-end report relies on.

Evidence

Evidence an index is unused

No reads in usage statistics

No seeks, scans, or lookups in sys.dm_db_index_usage_stats over a long period.

Absent from Query Store plans

No stored plan uses it, over Query Store’s retention period.

Plenty of writes

It’s still updated often, so it’s costing something.

Not enforcing anything

It isn’t a primary key or unique constraint that protects data.

Removing safely

How to remove an unused index safely

Step 1 of 4

  1. Usage statistics reset on restart, so record them regularly for at least a quarter, including a month end.

  2. Keep the definition so it can be re-created quickly.

  3. A disabled index can be rebuilt; watch for slow queries for a cycle.

  4. Once a full cycle has passed without problems, drop it and record why.

Check the calendar before you decide

The most common mistake is judging an index on a few weeks of data. For example: an index used only by the year-end stock valuation shows no reads for eleven months. Check with finance which reports run quarterly or yearly, and keep indexes they need, perhaps creating them only for the run.

Indexes piling up on busy tables?

Tell us which database and tables you’re concerned about. A few lines are enough.

Tell us what’s not working