MongoDB data modeling patterns are named, repeatable solutions to common schema design problems. Unlike relational normalization rules, these patterns are access-pattern-driven — each solves a specific combination of read/write performance challenges.
| Pattern | Problem Solved | Core Mechanism |
|---|---|---|
| Extended Reference | Frequent lookup of foreign document fields | Embed hot fields alongside the reference ID |
| Computed | Expensive aggregations on every read | Pre-compute and store aggregated values |
| Subset | Unbounded array in hot document | Embed last-N items; full list in child collection |
| Bucket | High-frequency time-series writes | Group N time-adjacent records per document |
| Outlier | Few documents vastly larger than most | Overflow flag + separate overflow collection |
| Polymorphic | Documents with varying structures in one collection | Discriminator field + shared index |
| Schema Versioning | Schema evolution without migration | Store schema version number in each document |