DB/MongoDB

[mongodb] 데이터 모델링

cozyboy 2015. 3. 16. 11:26


References

References store the relationships between data by including

links or references from one document to another. 

Applications can resolve these references to access the 

related data. Broadly, these arenormalized data models.


See Normalized Data Models for the strengths and 

weaknesses of using references.


Embedded Data

Embedded documents capture relationships between data 

by storing related data in a single document structure. 

MongoDB documents make it possible to embed document

 structures as sub-documents in a field or array within a 

document. These denormalized data models allow 

applications to retrieve and manipulate related data 

in a single database operation.

See Embedded Data Models for the strengths and 

weaknesses of embedding sub-documents.

 

출처: <http://docs.mongodb.org/manual/core/data-modeling-introduction/>