mysociety / mapit.mysociety.org

A Django project for running mySociety's main instance of MapIt for the UK
http://mapit.mysociety.org
Other
6 stars 2 forks source link

Add replica database vars to example config #90

Closed sagepe closed 5 years ago

sagepe commented 5 years ago

Adds examples for configuring a read-only replica database to the example configuration file, and necessary code to use it.

dracos commented 5 years ago

@sagepe Have added the necessary to use the variables if present (I think). With some replication-lag-dealing busting middleware, and it being random for reads otherwise.

LouiseMySociety commented 5 years ago

Test on staging today and then put it live.