MongoDB.local SF, Jan 15: See the speaker lineup & ship your AI vision faster. Use WEB50 to save 50%
Find out more >
Docs Menu
Docs Home
/ /

Designing Your Schema

The schema design process helps you identify the data your application needs and organize it to optimize performance.

Plan and design your schema early in the development process. This helps prevent performance issues as your application grows.

MongoDB's flexible schema allows you to design your schema iteratively. However, it can still be difficult to modify large-scale schemas that are used in production. Depending on your application, you may want to establish a simple schema to cover basic functionality before optimizing.

The schema design process consists of the following steps:

1

Identify the operations that your application runs most frequently. See Identify Application Workload.

2

Identify the relationships in your application's data and decide whether to link or embed related data. See Map Schema Relationships.

3

Apply schema design patterns to optimize reads and writes. See Apply Design Patterns.

4

Create indexes to support common query patterns. See Create Indexes to Support Your Queries.

Back

Specify Validation for Polymorphic Collections

Earn a Skill Badge

Master "Relational to Document Model" for free!

Learn more

On this page