You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there are circumstances when many transactions may fundamentally contend to change the same data fields. Specifically, if there are many flights being updated in the same area at the same time, the notification indices for each flight's associated subscription will need to be updated for each change to a flight in the area. We can reduce the likelihood of a deadlock or poor database behavior in two ways:
Always sort ID parameters before passing them in a SQL command since they will be evaluated in series rather than parallel
Add a "for update" flag when reading database entities to use a SELECT FOR UPDATE SQL command where appropriate
The text was updated successfully, but these errors were encountered:
Currently, there are circumstances when many transactions may fundamentally contend to change the same data fields. Specifically, if there are many flights being updated in the same area at the same time, the notification indices for each flight's associated subscription will need to be updated for each change to a flight in the area. We can reduce the likelihood of a deadlock or poor database behavior in two ways:
SELECT FOR UPDATE
SQL command where appropriateThe text was updated successfully, but these errors were encountered: