mongodb-modeling
MongoDB document modeling, embedding vs referencing, compound indexes, and aggregation pipelines.
SKILL.mdskills/mongodb-modeling/SKILL.md
GitHubMongoDB Data Modeling Protocol
- Embed data that is queried together and updated atomically; reference data for unbounded growth.
- Ensure all aggregation queries begin with an indexed $match stage.
- Prevent unbounded array growth to stay well beneath the 16MB document limit.