Temporarily hide an index from the planner.
Section: Explain and tune
Hide an index for testing
javascript
javascript
db.orders.hideIndex({ status: 1, created_at: -1 })Explanation
Hidden indexes can help you test whether an index is still needed before dropping it.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Explain and tune
Force a specific index with hint
Test how a query behaves with a chosen index.
Inspect collection stats
View storage and index metrics for a collection.