Branch Like Production: Five Checkpoints Before You Trust It
A five-checkpoint workflow for spinning up a database branch that behaves like production: clone config, replay migrations, deploy code, pull fresh data, then verify before you trust it.
Loading…
Topic
4 posts about Database Branching. Every summary links to the original.
See the idea
A five-checkpoint workflow for spinning up a database branch that behaves like production: clone config, replay migrations, deploy code, pull fresh data, then verify before you trust it.
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Databricks ran a customer hackathon centered on Lakebase, a fully managed Postgres database that separates storage from compute and lives under Unity Catalog governance. The hackathon had two tracks: one focused on building applications using Lakebase’s Git-like database branching with copy-on-write storage, and the other on syncing Unity Catalog tables into Postgres and streaming changes back to Delta. Lyft built Jevons Search, which gives an AI agent a copy-on-write branch of production in about six seconds to test actions against business rules before applying them. CIBC built Branchflight, a platform that creates a zero-copy Lakebase branch for every pull request in under five seconds and deploys a preview environment. Several teams replaced separate systems like search indexes or staging databases with Lakebase features such as synced tables and online feature stores.
Snorkel AI needed each pull request in its CI pipeline to have an isolated copy of production data for realistic testing, but restoring a full database copy took about 20 minutes per environment. They adopted Databricks’ Lakebase Postgres, whose copy-on-write branching creates writable branches in seconds regardless of database size because no data is copied at branch creation. AWS DMS continuously replicates the production Aurora cluster into Lakebase’s main branch, keeping it within about two minutes of the source. For every PR, the CI pipeline creates a branch via API, runs tests, and either deletes the branch or relies on automatic TTL expiration to clean up. Provisioning time dropped from over 30 minutes to under 60 seconds at p95, supporting about 100 concurrent PR branches on a 2.5 TB dataset with storage growing only for changes written.
Hamlet, an AI platform indexing meetings from over 7,200 local government bodies, uses Databricks Lakebase Postgres to give each pull request its own branch of production data. This approach lets engineers and AI coding agents like Claude and Codex test data pipeline changes against the exact data that caused a bug without any risk to production. Previously, the small team spent 15 to 30 minutes per pull request staging data and up to several hours weekly cloning data locally, a significant productivity drain. With Lakebase data branching, each preview environment connects to an isolated copy-on-write database where only branch changes consume separate storage, and branches can have an expiration time-to-live for automatic cleanup. A person still approves every merge into production, combining developer speed with human oversight for data pipeline development.
Database branching creates isolated database environments from a known parent state using copy-on-write, where branches share unchanged data and only store modifications. For a large parent database like one that is 40 GB, two branches may require just 5.6 MB of additional storage instead of 80 GB with traditional full copies. Developers can test schema migrations like adding a NOT NULL column to a table with millions of rows against realistic data and constraints, CI pipelines provision per-pull-request branches for isolated tests, and AI agents experiment across short-lived environments without risking the parent database. Safe operation relies on protecting parent branches from writes and deletions, restricting sensitive data in disposable branches, automating creation and cleanup, and keeping environments reproducible through version-controlled configuration. Databricks Lakebase provides database branching, enabling teams to adopt Git-style workflows for development, CI/CD, and AI agent use cases.
The best engineering reads, once a week.