Guides ยท Technology

Schema Migration Expand/Contract

Change schemas safely

Safe schema changes add columns/paths (expand), backfill and dual-read/write, migrate clients, then remove old fields (contract) once usage drops, reducing downtime risk.

Expand

Add new fields/tables; keep old in place; dual-write if needed.

Migrate

Backfill; move readers/writers gradually.

Contract

Remove old fields after confidence; clean code and docs.

Keep Exploring

Related Terms

One useful idea at a time

Get new explainers in your inbox

Occasional clear explanations. No daily noise.