~/talk

Migrating to Success: Unleashing the Power of Django Migrations

Talkat DevWorld 2024 · 2024-02-29..03-01· [django, databases]
slides:none on file

Explains concrete migration commands and tradeoffs: use makemigrations, migrate, showmigrations and sqlmigrate; use RunPython or JSON fixtures to move data; CI test setup with seed database (dump and restore) cuts test DB setup from ~20s to about 2s plus 1s test; --keepdb saves ~20s after the first run; squashmigrations only saves ~1s; full rebuild of a single initial migration yields ~5s create and 2s tests but requires heavy manual work.

AI-written summary · about

  1. 0:00Django migrations intro
  2. 2:21What migrations are
  3. 4:50Core commands workflow
  4. 7:16Modifying models fields
  5. 9:06Data migrations custom ops
  6. 11:18Renaming fields initial data
  7. 13:25Migrations testing CI/CD
  8. 16:40Test perf with seed DBs
  9. 18:46Squashing migrations trade-offs
  10. 19:48Recreate migrations from scratch
  11. 20:32Summary
~/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.