Data Modeling
Schemas, keys, normalization and sharding for real workloads.
7 notes · 35 min total
- 1Keys, Relationships and IntegrityTurn core entities into tables with primary and foreign keys, model 1:N and N:M relationships, and keep data correct at scale.9 min
- 2Types of DatabasesRelational, document, key-value, wide-column and graph databases: how each models data and when to choose it.11 min
- 3What Shapes a SchemaHow data volume, access patterns and consistency needs shape your tables, keys and database choice.3 min
- 4Normal Forms and DenormalizationWhy you store each fact once by default, what 1NF, 2NF and 3NF mean, and when duplicating data for faster reads is worth it.5 min
- 5Choosing IndexesHow to choose indexes that match your most important queries, and how to tie them to your API endpoints.2 min
- 6Choosing a Shard KeyHow to split data across databases with a shard key that keeps related data together and avoids cross-shard queries.2 min
- 7Data Modeling in an InterviewA step-by-step checklist for sketching a schema during a system design interview, plus sensible database defaults.3 min