mongodb-expert

Optimize MongoDB performance and schema design with targeted guidance.

Updated Dec 5, 2025
One-click install
npx skills add https://github.com/botPhU/project-An-English-speaking-practice-platform-supported-by-AI --skill mongodb-expert-botphu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mongodb-expert
Source: https://github.com/botPhU/project-An-English-speaking-practice-platform-supported-by-AI/tree/main/.agent/skills/mongodb-expert
Command: npx skills add https://github.com/botPhU/project-An-English-speaking-practice-platform-supported-by-AI --skill mongodb-expert-botphu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams tackle MongoDB performance and schema-design challenges by providing targeted optimization guidance.

Core Features & Use Cases

  • Document modeling best practices for embedding vs referencing to improve read/write efficiency.
  • Aggregation and indexing optimization techniques, including pipeline pushdown and ESR-based compound indexes.
  • Sharding and replica-set configuration guidance to balance load and ensure reliability across environments.
  • Use Case: When facing slow queries on a large dataset, apply this skill to design efficient schema layouts, optimize pipelines, and tune indexes to accelerate results.

Quick Start

Provide a rapid MongoDB assessment and generate an optimization plan tailored to your deployment.

Frequently Asked Questions about mongodb-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize slow MongoDB queries on a large dataset?

To optimize slow MongoDB queries, apply targeted indexing strategies and aggregation pipeline tuning. This Skill provides concrete guidance to design efficient schema layouts and accelerate read-write performance for large datasets.

What is the best way to design MongoDB schemas for embedding vs referencing?

MongoDB schema design for embedding vs referencing depends on your read-write patterns. This Skill provides document modeling best practices to improve read/write efficiency by structuring data layouts based on application access patterns.

How does MongoDB sharding work for unbalanced shard distributions?

MongoDB sharding distributes data across cluster nodes using shard keys. This Skill addresses unbalanced shard distributions by providing configuration guidance to balance load and ensure reliability across production environments.

Why does my MongoDB replica-set experience lag?

MongoDB replica-set lag occurs when secondary nodes cannot sync with the primary fast enough. This Skill provides replica-set configuration guidance to tune read-write patterns and ensure reliability across environments.

Can I use ESR-based compound indexes to improve MongoDB aggregation performance?

Yes, ESR-based compound indexes improve MongoDB aggregation performance. This Skill applies indexing optimization techniques including pipeline pushdown and ESR rule structures to accelerate pipeline execution and query results.

When should I not use embedding in MongoDB document modeling?

Avoid MongoDB document embedding when data grows unboundedly or requires frequent independent updates. This Skill provides document modeling guidance to determine when referencing prevents inefficient read-write patterns and data bloat.