For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

Schema Design Patterns

Use schema design patterns to optimize your data model based on how your application queries and uses data.

Handle Computed Values
Perform calculations in the database so results are ready when the client requests data.
Group Data
Group data into series to improve performance and account for outliers.
Polymorphic Data
Handle variable document fields and data types in a single collection.
Document and Schema Versioning
Prepare for schema changes to account for changing technical requirements.
Archive Pattern
Move old data to a separate location to increase storage and improve performance where data is accessed most frequently.
Single Collection Pattern
Use references to group related documents of different types into a single collection.
Earn a Skill Badge

Master "Schema Design Patterns & Antipatterns" for free!

Learn more