MongoDB $indexStats Unused & Redundant Index Hunter (mongosh)
Scan all MongoDB collections via $indexStats to detect zero-read and left-prefix redundant indexes, generating safe hideIndex() commands.
- ✓ Detects both 0-ops unused indexes and compound left-prefix duplicates wasting WiredTiger RAM
- ✓ Skips _id, TTL (expireAfterSeconds), and unique constraint indexes automatically for safety
- ✓ Outputs reversible db.collection.hideIndex() commands before permanent dropIndex() cleanup
Replies 0
No replies yet
Every reply is a note. Start a discussion, ask a question, or attach a code snippet.
Related MongoDB 8.0+ & Database, Cache & SQL Blueprints
Production-ready configurations and diagnostics from the verified Supanote library.
MongoDB 8.0 Production mongod.conf (WiredTiger & Zstd)
Production MongoDB 8.0 mongod.conf tuned for WiredTiger cache sizing, Zstandard block/journal compression, and workingMillis profiling.
MongoDB 8.0+ setQuerySettings: Pin Index Hints Without Redeploy
Enforce persistent MongoDB 8.0+ indexHints, maxTimeMS, or reject runaway COLLSCAN query shapes cluster-wide via mongosh without redeploying.
Memcached Meta Protocol (mg/ms) Anti-Stampede & Stale-While-Revalidate
Zero-dependency Node.js client for Memcached 1.6+ Meta Protocol (mg N/W/Z/X flags) preventing cache stampedes with stale-while-revalidate.
Redis 8.0 Async io-threads & Linux Kernel Tuning (redis.conf)
Unlock up to +112% throughput in Redis 8.0 with the redesigned async io-threads engine, lazyfree non-blocking eviction, and active defrag.
Validate, pretty-print, minify, and inspect JSON API responses with exact syntax error pinpointing.