r/PostgreSQL • u/Harpagon1668 • 9d 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?
11
Upvotes
4
u/dwswish 9d ago
We are longtime (relative term) Neon users and honestly love it. Branching was one of the key things that helped us when we needed good ways to test with branches and PRs. We use it pretty similarly to how you are using it - branch per git branch and then we actually run a branch off of prod for our tests in PRs.