~/talk

Strategies for Reliable Database Schema Migrations

Talkat Conf42 Kube Native 2024 · on Thursday, 2024-09-26· [databases, devops-and-delivery]
slides:none on file

A real outage occurs when an enum alter triggers a full table rewrite and a lock that lasts around four hours; the recovery shows human review and CI missed that risk. The solution is Database schema as code with a planner and Atlas’s migration analysis engine that flags destructive and backward-incompatible changes, plus unit tests for DB logic, data-migration tests, CI-time warnings and migration checks (txar) that run pre-deploy — these catch risky alters before production.

AI-written summary · about

  1. 0:00Introduction and Speaker Background
  2. 1:04Developer Horror Story: A Migration Gone Wrong
  3. 4:23Postmortem Analysis: Understanding the Outage
  4. 6:45The Importance of Reliable Schema Changes
  5. 7:45Strategy 0: Automate Your Schema Changes
  6. 9:40Strategy 1: Database Schema as Code
  7. 12:06Strategy 2: Testing Database Logic with Unit Tests
  8. 14:58Strategy 3: Testing Data Migrations
  9. 17:42Strategy 4: Automating Risk Detection in Migrations
  10. 24:14Strategy 5: Pre-Migration Checks
  11. 25:52Conclusion and Recap of Strategies
~/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.