Replies: 1 comment 13 replies
-
|
Currently in order to prevent the multiple seats I'm using perform ReservationJob { .. } = withTransaction do
sqlExec "LOCK TABLE reservations" ()So Maybe that's already doing the sequence I require. |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a demo "Seat reservation" app that allows students to reserve a seat.
When students asks for a seats, a Reservation record is saved, and a unique seat number should be later assigned to it via a Job.
See it in action.
When I try to register many students at once, I get duplicate seat numbers.
It would have been great if on a Jobs definition I could define
Beta Was this translation helpful? Give feedback.
All reactions