Improved production -> staging database replication #1874
Labels
💻 aspect: code
Concerns the software code in the repository
✨ goal: improvement
Improvement to an existing user-facing feature
🟩 priority: low
Low priority and doesn't need to be rushed
🧭 project: thread
An issue used to track a project and its progress
skip-changelog
🧱 stack: api
Related to the Django API
Projects
Description
#1154 describes a mechanism for updating staging by restoring snapshots of production. In the discussion for that issue, a few alternative proposals are brought forward (from @zackkrida's comment):
- Minimal code required
- Can downsize staging DB
- Simple to secure read-only connection
- Staging DB has its own media records which can be deleted and modified
- Increase in load on production DB
- Scheduled updates
- May duplicate data unnecessarily
CREATE PUBLICATION pub_name FOR TABLE images;
and are able to subscribe to this in the staging DB. The only benefit here is that we get near-realtime updates automatically and the staging DB has its own media records which can be deleted and modified.Some aspects to consider when planning this project:
Documents
Issues
Prior Art
#1154
The text was updated successfully, but these errors were encountered: