~/talk

"Normalize until it hurts; denormalize until it works"

Talkat PyGotham 2019 · 2019-10-04..10-05· [databases]
slides:none on file

Advice: normalize until redundancy causes anomalies then selectively denormalize with patterns and tools. It defines three denormalization patterns EXTEND, AGGREGATE, FETCH and shows concrete implementations: expression indexes and Postgres functions for EXTEND, materialized views or django-pgviews and triggers or django-denorm for AGGREGATE, and explicit tasks or field-tracking (django-model-utils or django-lifecycle) for FETCH. It warns historical fields (order totals, slugs, shipment addresses) must remain immutable, to profile before changing schema, and to accept eventual consistency when using cronjobs or celerybeat.

AI-written summary · about

  1. 0:00Introduction and context
  2. 1:03Normalization basics and anomalies
  3. 3:30Simpler view of normalization
  4. 4:56Normalization in Django
  5. 6:41Historical data vs normalization
  6. 8:55Query expressions to avoid denormalization
  7. 12:11Denormalization patterns overview
  8. 13:16EXTEND pattern explained
  9. 15:22AGGREGATE pattern explained
  10. 19:23FETCH pattern explained
  11. 21:59Concurrency and profiling tips
  12. 22:43Advanced denormalization ideas
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.