~/talk

Database Design for Beginners

Talkat RailsConf 2019 · 2019-05-01..05-03· [databases]
slides:none on file

A concrete workflow emerges: list facts, write Functional Dependencies and Keys, run the decomposition that yields Boyce‑Codd Normal Form provably free of the anomalies identified, then implement with Rails migrations, PostgreSQL unique indexes and foreign key constraints and surrogate integer IDs. The wrestling example shows what breaks and what fixes it and Heath's Theorem is cited as the proof that the normalized schema preserves data and removes duplication so the DB can be trusted as source of truth.

AI-written summary · about

  1. 0:00The importance of data
  2. 2:25Introduction to OLTP
  3. 3:44The need for design
  4. 5:32Modeling business facts
  5. 7:09Database anomalies
  6. 8:27The normalization process
  7. 10:29First normal form
  8. 13:18Identifying functional dependencies
  9. 14:30Defining keys
  10. 16:52Achieving second normal form
  11. 18:25Boyce-Codd normal form
  12. 22:11Benefits of normalized models
  13. 24:54Surrogate keys in rails
  14. 27:12Refining the data model
  15. 28:55Physical database constraints
  16. 30:31Enforcing data integrity
  17. 31:46Data validation trade-offs
  18. 33:38Handling null values
  19. 35:46Conclusion and Q&A
~/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.