Skip to main content

Zero-Downtime Migrations in Practice

Three-phase pattern for schema changes: add the new column, dual-write to both, backfill in batches, switch reads, drop the old column. Each phase is independently deployable.For h…

March 11, 2026 DevOps chris 1 min read MySQL

Article takeaway

Three-phase pattern for schema changes: add the new column, dual-write to both, backfill in batches, switch reads, drop the old column. Each phase is independently deployable.For h…

Three-phase pattern for schema changes: add the new column, dual-write to both, backfill in batches, switch reads, drop the old column. Each phase is independently deployable.

For huge tables, use a tool like pt-online-schema-change (MySQL) or pg_repack (Postgres). Default ALTER TABLE on a big table locks for the duration.

The trickiest part is dual-writing — application code must be careful which column it reads while the migration is mid-flight.

Share X / Twitter LinkedIn

Leave a comment

Related Posts