Closed challengee closed 10 years ago
It's possible to have the same sequence number now. If we keep working with puma with one worker and 20 threads, we can solve this with a mutex. If we scale to multiple process, we need to solve this another way.
Suggestions?
make the invoice number a unique field in the db, if we can't save with a certain number, increment that number and use that one?
yep then we need to figure out how to set this constraint in postgres :)
It's possible to have the same sequence number now. If we keep working with puma with one worker and 20 threads, we can solve this with a mutex. If we scale to multiple process, we need to solve this another way.
Suggestions?