MongoDB 8 · Indexes and performance

See how a query runs

Show the plan, index use and documents examined.

db.users.find({ email: "[email protected]" }).explain("executionStats")

Official MongoDB 8 documentation

More indexes and performance commands

All indexes and performance commands · MongoDB 8 cheatsheet

Was this page helpful?