Contact us
Insights

Checking index write overhead

Every index speeds some reads and slows every write. How to measure what each one costs, and decide which are worth keeping.

The problem

Indexes added, never removed

When a report is slow, the usual fix is a new index, and it often works. Over the years, a busy table collects a dozen or more. Each one must be updated on every insert, update, and delete. Order entry gets slower, nightly loads overrun, and the transaction log grows, and nobody connects it to the indexes added to speed up reporting.

Measures

What to measure for each index

Reads

How often queries use it, from sys.dm_db_index_usage_stats seeks, scans, and lookups.

Writes

How often it’s updated, from the same view’s user_updates.

Size

Space on disk and in memory, and therefore in backups.

Overlap

Whether another index already covers the same leading columns.

Reviewing

How to review write overhead

Step 1 of 4

  1. Usage figures reset when SQL Server restarts, so collect them across a full month, including month end.

  2. An index updated a million times and read ten times is costing far more than it saves.

  3. Merge indexes that share leading columns into one.

  4. Disable or drop on a test copy and time both the writes and the reports that might use it.

Write-heavy tables need fewer, better indexes

Tables that take constant inserts, such as orders, stock movements, or audit logs, suffer most. For example: an order lines table with fourteen indexes might do with five well-chosen ones, making every order faster to save, while reports run against a separate reporting copy with its own indexes.

Saves and loads getting slower?

Tell us which tables are busiest and what’s slowing down. A few lines are enough.

Tell us what’s not working