Instead of overwriting an existing document on save it may be better to see what has been updated or changed and only update does specific values in the DB. This would avoid a race condition where to process are changing the same document at the same time
Instead of overwriting an existing document on save it may be better to see what has been updated or changed and only update does specific values in the DB. This would avoid a race condition where to process are changing the same document at the same time