Module 03: Data Modeling

In this module, we shift our mindset from “Relational” to “Document-Oriented.” You will learn that while MongoDB is schema-less, your application is not.

Chapters

  1. Schema Design: The “Together” Rule

Understand the physics of disk I/O and why embedding data drastically improves read performance compared to SQL joins.

  1. Relationships: Embed or Reference?

Master the Cardinality Spectrum. Learn when to embed (1:Few) and when to reference (1:Squillions) to avoid the 16MB document limit.

  1. Defensive Modeling: Schema Validation

Implement “Governed Schemas” using JSON Schema validation to enforce data integrity without sacrificing flexibility.

  1. Module Review

Test your knowledge with flashcards and review the modeling cheat sheet.