~/talk

Sane schema migrations with Alembic and Postgres

Talkat PostgresOpen 2013 · 2013-09-16..09-18· [databases, developer-experience]
slides:none on file

Uses Alembic + SQLAlchemy against Postgres to turn chaotic SQL-and-bash migrations into an automated, reviewable pipeline with CI and a full 1.5 terabyte staging copy; runs schema changes weekly, treats migrations as separate commits so downgrades work, and embeds raw SQL for tricky work like index creation with concurrent and partition changes. Handles user-defined functions via file-per-object loading, performs multi-commit sequences for a thousand check constraints, and removes 100,000 lines of ad hoc schema code.

AI-written summary · about

  1. 0:00Introduction
  2. 3:59Schema migrations challenges
  3. 11:02Failed migration lessons
  4. 21:51Choosing migration tools
  5. 28:56Alembic in practice
  6. 33:46Alembic insights
  7. 41:07What Alembic could do better
  8. 43:52Alembic demo
  9. 54:26Q&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.