Explore Related Tools
Hand-picked utilities and calculators related to this tool.
Effective data modeling in MongoDB depends on how your application will access and manipulate data. There are two primary patterns: Embedding and Referencing.
(Denormalized)
{
_id: 1,
user: "John",
address: {
city: "NYC",
zip: 10001
}
}(Normalized)
{
_id: 1,
user: "John",
address_id: 50
}Data is nested inside the parent document. This is preferred for One-to-One and One-to-Few relationships.
Related data is stored in separate collections and linked via an ID. This is preferred for One-to-Many (Large) and Many-to-Many relationships.
Hand-picked utilities and calculators related to this tool.
