[openstreetmap/openstreetmap-website] Use database replicas for read requests (#2634)

Andy Allan notifications at github.com
Thu May 28 07:33:12 UTC 2020


> Just need to wait for that.

In the meantime I've been testing against the 6-0-stable branch of rails, and it turns out that we make a surprising number of writes during GET requests! Way more than I expected. Some of these are reasonable (like updating the "message_read" when viewing messages, or the "needs_view" flag for user_blocks). Some are more dubious but not super important, like resending the registration confirmation email being via GET. Some are tricky, like how our signin system uses a GET request on a redirect to complete the signin process, or the magical mystical I-certainly-don't-understand-this rigmarole of creating tokens during OAuth GET requests. And then some I think can be definitely refactored, like the admin links to suspend or delete users all working via GET requests.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2634#issuecomment-635166552
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200528/14fe115f/attachment.htm>


More information about the rails-dev mailing list