Unused index detection with $indexStats

Published reference · snapshot 2026-10-20 · skill mongodb-expert/references/unused-index-detection-with-indexstats.md

Also known as: $indexStats usage analysis, Redundant and unused index pruning with $indexStats, Redundant-prefix index detection

↓ Facts as markdownall context files

Source-anchored research for Unused index detection with $indexStats. Run status: COMPLETED.

These notes link each claim to its source. Some citations identify archived research reports that are no longer hosted on this site. A published reference means the content is available; it does not certify independent review or accuracy.Read the editorial policy and follow the sources before relying on a claim.

Definitions

How it works

Problems, failure modes and limitations

Comparisons and alternatives

Facts and statements

Children

Frontier under this node: Atlas Performance Advisor drop-index recommendations, Exporting $indexStats metrics with mongodb_exporter and PMM, Hidden indexes as a safe drop trial, Leading-prefix redundant index detection, Per-node and per-shard $indexStats aggregation across replica sets and shards, Persisting index usage metrics with PMM and mongodb_exporter, Redundant and prefix index detection, Safe index removal: locks, rollback and regression checks, Unique, TTL and shard-key indexes that read as unused, Write amplification and cache cost of unused indexes, dropIndexes locking and rollback by rebuild

← the whole tree · 3D view· how to read this page