Apologies if this is just a silly noob question.
I was wondering how Waterline handles concurrent updates to the same record by different users.
like so...
- User A executes findone(id=1)
- User B executes findone(id=1)
- User A and B are both simultaneously making changes to the exact same record albeit different changes.
- User A executes save()
- User B also executes save()
Depending on which save() is committed to the DB first, one user will lose their changes because it will be overwritten by the second one.
Is there support for handling this scenario in Waterline ?
Apologies if this is just a silly noob question.
I was wondering how Waterline handles concurrent updates to the same record by different users.
like so...
Depending on which save() is committed to the DB first, one user will lose their changes because it will be overwritten by the second one.
Is there support for handling this scenario in Waterline ?