polis icon indicating copy to clipboard operation
polis copied to clipboard

Clarify the configuration for Read-only DB replicas

Open ballPointPenguin opened this issue 1 year ago • 0 comments

Problem: Previously there was an optional var DATABASE_FOR_READS_NAME that served as a pointer to another value which could be managed programmatically to point to one of potentially many read-only databases. In the great configuration refactor, this was replaced with a simple READ_ONLY_DATABASE_URL var which is more limited and must be explicitly set just once.

Suggested solution: We need to decide if and how to support multiple read replicas in a way that works in Heroku and non-Heroku environments.

Alternative suggestions: TBD

Additional context: This came up during review of another PR https://github.com/compdemocracy/polis/pull/1663

ballPointPenguin avatar Apr 09 '23 21:04 ballPointPenguin