mongodb-indexing-optimization
CommunityTurn slow Mongo queries into fast ones.
Data & Analytics#mongodb#performance profiling#explain plan#query tuning#index optimization#database indexing#compound indexes
AuthorThiago-Cruz-eng
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you diagnose and fix slow MongoDB queries by designing the right indexes and validating query plans so the database stops scanning too many documents.
Core Features & Use Cases
- Index design with ESR rule: Build single-field and compound indexes with correct field order for equality, sort, and range patterns.
- Explain-plan driven performance analysis: Interpret executionStats to confirm whether the query uses IXSCAN or falls back to COLLSCAN.
- Optimization troubleshooting: Apply targeted recovery steps for common issues like unused indexes, excessive indexes, and poor query shapes.
Quick Start
Ask for an index recommendation by providing the query pattern, collection_info (schema and cardinality hints), and your explain_output, and request the resulting index definition plus the expected performance impact.
Dependency Matrix
Required Modules
None requiredComponents
referencesassetsscripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: mongodb-indexing-optimization Download link: https://github.com/Thiago-Cruz-eng/Hibrygame/archive/main.zip#mongodb-indexing-optimization Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.