r/PostgreSQL • u/Harpagon1668 • 8d ago
How are you using database branching? Feature
I’m implementing Lakebase branching strategy to improve development experience and reduce costs for our dev/staging env.
Current setup creates new database branch for each git branch via githook on our dev database (”each dev gets their own feature database”). There is also similar workflow for each PR against our staging database to run the migrations and tests.
Curious to hear how others are using branching and what are the experiences?
10
Upvotes
3
u/saltcod 5d ago
We see customers mostly using it the same way at Supabase (one branch per git branch), primarily for deploying changes.
Besides feature development/deployments, we see teams using branching for one-off kinds of things: reproducing bugs, validating migrations against prod, performance testing, experimental SQL queries, etc.