How to Use Database Branching in Databricks Lakebase @Databricks
How to Use Database Branching in Databricks Lakebase  @Databricks
Uploaded November 2026 | Updated November 2026, 2 days ago
Databricks Lakebase lets you branch your database like code. A new branch of your serverless Postgres database inherits both the schema and the data of its parent in seconds, so you can test changes on a production-like database without touching production.

⏰ Chapters
00:00 - Database Branching in Lakebase Serverless Postgres
00:42 - How Branching Works: Copy-on-Write, Compute and No Merge
01:45 - Create a Database Branch with the Databricks CLI
02:56 - Test a Schema Migration on a Branch and Review Schema Diff
03:59 - Apply the Tested Migration to Production and Reset
04:48 - Point-in-Time Restore After an Accidental DELETE
05:38 - Recover Production with pg_dump and Clean Up Branches

🌿 How Lakebase branching works
A branch shares every storage page with its parent through copy-on-write instead of copying the data, so creating one takes seconds no matter how big the database is. It stores only the pages you change and runs on its own compute that scales to zero when idle, which lets developers, CI pipelines, and AI coding agents each work on their own branch.

🛠️ What you'll see in the demo
Using a coffee shop database with 2,500 customers and 120,000 orders:
• Creating a branch with the Databricks CLI in about 4 seconds, with a TTL that deletes it after 1 day
• Connecting with psql and testing a schema migration on the branch while production stays untouched
• Reviewing the change with schema diff, which compares the schema of the branch and its parent, not the rows
• Applying the same tested migration file to production, because Lakebase does not merge data between branches the way Git merges code
• Resetting the branch from its parent to start the next change with fresh production data
• Recovering from an accidental DELETE with point-in-time restore, which creates a new branch from the 7-day history window instead of overwriting production
• Copying the orders back with pg_dump and letting idle branches scale to zero

Whether you're a developer testing a risky migration, a platform engineer rolling out database branching to your team, or a team lead giving AI coding agents a safe copy of production, Lakebase branching lets you change a real copy of production, apply it with the same migration file, and get your data back in minutes if something goes wrong.

🔗 Resources
📘 Lakebase branches documentation: docs.databricks.com/aws/en/oltp/projects/branches
🚀 Databricks Lakebase: databricks.com/product/lakebase

🤝 Stay connected
Website: databricks.com
Twitter: https://x.com/databricks/
LinkedIn: linkedin.com/company/databricks
Instagram: instagram.com/databricksinc
Facebook: facebook.com/databricksinc
How to Use Database Branching in Databricks LakebaseDatabricks + Rivian The AI That Makes Cars Smarter Over TimeDatabricks for Good x Global Orphan (GO) Project: Turning Insight into ImpactUnity Catalog Fine-Grained Access Controls on External EnginesCompare Claude Code, Codex and Hermes on One Model with Unity GatewayGoverning AI Strategy with Unity AI GatewayMaking AI understand your data - part 2 #databricks #data #aiRun Postgres Across Availability Zones with Databricks LakebaseHow AI Helps Match Doctors With Communities in Need | Databricks for GoodData + Semantic Context = AI Ready | How TK Elevator Built It on DatabricksFebruary Databricks Updates: Lakebase Autoscaling, Knowledge Assistant AI, and Sharing to IcebergIntroducing Agent Memory on Databricks
Databricks |

How to Use Database Branching in Databricks Lakebase

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER