NoSQL Data Modelling has two choices viz. Embedding (non-normalized) vs Referencing (normalized).
Aspects to choose:
Aspects to choose:
- 1:1 relationship => Prefer Embedding
- 1-to-Many (small & bounded) => Prefer Embedding
- 1-to-Many (unbounded) => Prefer Referencing
- Volatility (frequently changing sub-documents) => Prefer Referencing
- Immense read-speeds needed => Prefer Embedding
No comments:
Post a Comment