Getting Started
What is MongoDB?
Install / Config
C.R.U.D. Ops
Data Modeling
Database Mgmt
Data Modeling
One to One Relationships: Overview
What is a "one to one" relationship?
.
One item maps directly to another item
Example: Person --> Birthdate
Example: Vehicle --> Registration Number
When would you use a "one to one" relationship?
.
When the amount of data is too large for a single item
Split the data into separate collections
Provide a common key
What is a
normalized
data model?
.
Collections of data which share common identifying keys
Customers --> Purchases --> Products
How can you build "one to one" relationships in MongoDB?
.
Use either the "manual", the "embedded", or the "DBRef" approach
+
o
-