Setup & Installation
What This Skill Does
Diagnoses slow MongoDB queries and recommends indexes based on explain plans, existing collection indexes, and Atlas Performance Advisor output. Follows the ESR rule (Equality, Sort, Range) for compound index suggestions and prefers index coverage over query rewrites. It pulls real explain() stats and Performance Advisor data from your cluster instead of guessing from the query shape, so index suggestions match actual selectivity and workload.
When to use it
- Working with mongodb query optimizer functionality
- Implementing mongodb query optimizer features
- Debugging mongodb query optimizer related issues
