Decision#d1
Catalogue / buildkite-2021-bigint-primary-key-migration
Buildkite moved a PostgreSQL table of over 2 billion rows from integer to bigint keys with a shadow column and no downtime
Buildkite. Core PostgreSQL database behind the Rails monolith.
Records
Decision#d2
Keep migrations from hurting production with concurrent index builds and a load-aware backfill
Decision#d3
Add NOT NULL through a validated CHECK constraint so PostgreSQL can skip the table scan
Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.