~/talk

MongoDB Schema Design - best practices

Talkat Conf42 JavaScript 2020 · 2020-09-30..10-01· [databases]
slides:none on file

Covers concrete MongoDB schema choices: use embedded documents to serve common queries with one fast, atomic read and avoid joins, or use references when documents risk the 16 megabyte document limit or when subdata is rarely needed. Rules given: favor embedding unless you can justify referencing, avoid unbounded arrays (use reverse references for logs a “one‑to‑squillions” pattern), and prefer referencing for one‑to‑many or many‑to‑many to control size and cost. Mentions MongoDB University M001/M320.

AI-written summary · about

  1. 0:00Introduction to schema design
  2. 2:18Relational vs MongoDB schemas
  3. 5:35Schema design fundamentals
  4. 9:04Embedding vs referencing
  5. 15:00One-to-one and one-to-few
  6. 18:07One-to-many trade-offs
  7. 21:16One-to-squillions
  8. 24:30Many-to-many relationships
  9. 28:42Schema design rules
  10. 30:07Relational vs MongoDB recap
  11. 33:19Resources and next steps
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.