pablobm left a comment (openstreetmap/openstreetmap-website#6379)
Thank you, that makes sense :+1:
One question: does the `FOR UPDATE` need to be in a transaction? Reading the
Postgres docs I'm understanding yes, and that's why the `.lock` is put within
`Changeset.transaction`. But if this wasn't within a transaction, what would be
the behaviour? I see that `FOR UPDATE` still happens, but I wonder how log the
lock lasts for in that case.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6379#issuecomment-3346284890
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/6379/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev