You are viewing an offline version of MongoDB documentation. Some page features might be unavailable. To view the latest version of the page or use interactive features, visit the live page.
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.