Azure (Microsoft) logo

Skill

documentdb-data-modeling

design Azure DocumentDB data models

Covers Azure MongoDB Database Data Modeling

Description

Data modeling patterns for Azure DocumentDB — embed vs reference, 16 MB document limit, denormalization for read-heavy workloads, schema versioning. Use when designing new schemas, reviewing existing data models, migrating from SQL, deciding between embedding and referencing, modeling one-to-one / one-to-many / many-to-many relationships, or troubleshooting document-size and query-performance problems that stem from the data model.

SKILL.md

Data Modeling — Azure DocumentDB

Guiding principle: "Data that is accessed together should be stored together."

Each rule follows the same shape — why it matters → incorrect example → correct example → references.

Rules

Decision framework

RelationshipCardinalityAccess patternRecommendation
One-to-One1:1Always togetherEmbed
One-to-Few1:N (N < ~100)Usually togetherEmbed array
One-to-Many1:N (N > ~100)Often separateReference
Many-to-ManyM:NVariesTwo-way reference or junction collection

See each rule file for the full reasoning and code examples.

© 2026 YourAI.tools. Every skill from an identity-verified publisher.

Independent catalog. Not affiliated with, endorsed by, or sponsored by Anthropic or any listed publisher. All trademarks belong to their respective owners.