
Mongodb Query Optimizer
by mongodb1e72df255e54Apache-2.0Listed Oct 8, 2026Updated Oct 8, 2026
Help with MongoDB query optimization and indexing. Use only when the user asks for optimization or performance: "How do I optimize this query?", "How do I index this?", "Why is this query slow?", "Can you fix my slow queries?", "What are the slow queries on my cluster?", etc. Do not invoke for general MongoDB query writing unless user asks for performance or index help. Prefer indexing as optimization strategy. Use MongoDB MCP when available.
Only the file list is public. File contents are available once the skill is installed in a workspace.
| Path | Size | Type |
|---|---|---|
| references/aggregation-optimization.md | 6.6 KB | text/markdown |
| references/antipattern-examples.md | 2.5 KB | text/markdown |
| references/core-indexing-principles.md | 4.2 KB | text/markdown |
| references/update-query-examples.md | 1.1 KB | text/markdown |
| SKILL.md | 10.1 KB | text/markdown |
Source and attribution
Source:mongodb/agent-skillsinplugins/mongodb-atlas/skills/mongodb-query-optimizerat commit1e72df2
License: Apache-2.0
Content belongs to its original authors. SourceWeft indexes it from a public repository.
More from mongodb/agent-skills

Mongodb Search And Ai
mongodb
Guides MongoDB users in choosing, building and optimizing Atlas Search, Vector Search and Hybrid Search indexes and queries.

Mongodb Schema Design
mongodb
Guides MongoDB schema design, data modeling patterns, anti-patterns, and access-pattern analysis.

Mongodb Natural Language Querying
mongodb
Generates read-only MongoDB find queries and aggregation pipelines from natural language using schema context.

Mongodb Connection
mongodb
Guides MongoDB client connection configuration, including pools, timeouts and troubleshooting, across driver languages.

Mongodb Atlas Stream Processing
mongodb
Guides building, operating, and debugging MongoDB Atlas Stream Processing pipelines through MongoDB MCP Server tools.
More in Data & Analytics

Spanner Basics
Guides Google Cloud Spanner administration, schema design, querying and performance diagnosis.

Gke Cost Analysis
Answers natural-language questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics.

Datalineage Bigquery Asset Impact Analysis
Guides an agent through downstream impact (blast radius) analysis for a BigQuery table or view using Data Lineage.

Bigquery Troubleshooting
Diagnoses failing, slow, or unexpectedly expensive BigQuery jobs through structured root-cause workflows.

Bigquery Optimization
Guides BigQuery cost and performance optimization across capacity editions, storage layout, and SQL queries.

Bigquery Bigframes
Guides writing Python code with BigQuery DataFrames (BigFrames) for data processing, analysis, and machine learning.