-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Labels
Description
Issue
in most places we are reading data which is meant for update either outside transaction or inside transaction, but the read data is not locked for further reads which can lead to missed updates as the data being committed later on would have done so based on old data
Solution
Read data meant for dictating updates inside transaction with FOR UPDATE
constraint (via diesel's .for_update()
to lock the data