3 ms·
What are the intended usecases for "branching" a database? Currently, I use separate databases for different environments, are branches better?
by rkwz 4y ago
What are the intended usecases for "branching" a database? Currently, I use separate databases for different environments, are branches better?
- thejosh 4y agoIt's a great feature on heroku for branches, it shares data between review apps. Quite nice.
- ukd1 4y agoHave a staging / qa env, then fork it for a branch for testing. Much faster than reseeding / restoring.
- kelvich 4y agoNow the most common setup is to copy the production database to the staging once in a while and test migration against staging. With branching, you can test each PR against its own production database branch -- just put branch creation in your CI config. Hence, it has fewer moving parts, is a bit easier to set up, and reduces the lag between prod and staging.