No retries: a single debit
Debit 50 from account id = 1 in accounts under contention. To avoid serialization errors and retry loops, do the read-and-modify in one atomic statement: debit 50 only if the balance will not go below zero.
Přihlaste se, abyste viděli historii odevzdání
Přihlásit sePřihlaste se, abyste mohli použít AI mentora
Přihlásit se