A single lock order
Credit accounts id = 1 and id = 2 in accounts by 1 each. So concurrent operations cannot deadlock, change both rows in one statement — then locks are taken in a single consistent order, not by two separate updates in an arbitrary order.
Prihláste sa, aby ste videli históriu odoslaní
Prihlásiť saPrihláste sa, aby ste mohli používať AI mentora
Prihlásiť sa