Open schinken opened 5 years ago
I tried changing code to update atomically. But then I can't correctly check the user account boundaries. Because there might be a race condition between simultaneous update requests. dang.
Why can't sqlite just support PESSIMISTIC WRITE :( https://github.com/strichliste/strichliste-backend/blob/master/src/Service/TransactionService.php#L81
I tried changing code to update atomically. But then I can't correctly check the user account boundaries. Because there might be a race condition between simultaneous update requests. dang.
Why can't sqlite just support PESSIMISTIC WRITE :( https://github.com/strichliste/strichliste-backend/blob/master/src/Service/TransactionService.php#L81