Database Manual / Data Modeling

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.将旧数据移动到单独的位置,以增加存储并提高数据访问最频繁的位置的性能。