Skip to content
Theory · MongoDB: Documents, Queries, Embed or Reference · lesson 11 of 12

Embed or reference

A relational schema is built by the rules of normalization: each fact is stored in one place, and links are rebuilt with joins. In MongoDB the main question is a different one: what does the application read together. The barista keeps the add-ons right on the latte's card, because he looks at them every time he makes the drink.

In this lesson

  • Embedding
  • Reference
  • Three kinds of links
  • The 16 MB limit
  • Common mistake
  • Key points