This version of the documentation is archived and no longer supported. To upgrade your 8.2 deployment, see the MongoDB 8.3 upgrade procedures.
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.