How to Set Up a Shadow Production Database for PostgreSQL?
1
vote
1
answer
1619
views
I'm working on a Django project and I'd like to avoid the common pitfall of using SQLite for development and PostgreSQL for production referenced in Two Scoops of Django .
I'd like to take this a step further and use a "shadow production database" (shadow prod DB) for PostgreSQL. How can I get this set up? I think that once the shadow prod DB is set up and configured, swapping out the database settings from "production" to "development" (shadow Prod) will be trivial in the Django application's
settings.py
file.
However, when it comes to setting up the framework where the "shadow prod DB" is actually recording all of the same transactions that are occurring in the production database I have no idea where to start. Any help is greatly appreciated.
Further, what do I do if I want to get the shadow prod DB onto a laptop. What happens when the database size grows prohibitively large?
Thanks, Scott.
For posterity, I originally heard about the concept of a "shadow prod DB" on the podcast Scaling Postgres which linked to this post from Heap.
Asked by Scott Skiles
(111 rep)
Jan 23, 2019, 07:13 PM
Last activity: Jan 24, 2019, 06:29 PM
Last activity: Jan 24, 2019, 06:29 PM