Implement locking in the database for assignment of shifts
Closed this issue · 1 comments
chargio commented
If more than one person assigns a shift at the same time, it can happen that the shift is assigned more than the capacity.
Implementing lock would be great to avoid this.
Would it make sense to lock the database only when less than 5 spaces are left?
How to test it?
chargio commented
Done in code with pessimistic locking