[openstreetmap/openstreetmap-website] Lock changesets during a diff upload (PR #6379)
mmd
notifications at github.com
Fri Sep 26 19:01:41 UTC 2025
mmd-osm left a comment (openstreetmap/openstreetmap-website#6379)
I don't know what Rails is doing with different object instances, but from a database point of view this looks ok:
The important thing is that we start with SELECT ... FOR UPDATE on the changesets table before reading anything from that table without holding a row level db lock.
<img width="1548" height="1021" alt="image" src="https://github.com/user-attachments/assets/9765420f-877f-46bc-ad75-4f2f0ca98d34" />
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6379#issuecomment-3340080092
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6379/c3340080092 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250926/5174dc68/attachment.htm>
More information about the rails-dev
mailing list