Answer the question
In order to leave comments, you need to log in
Simultaneous writing to Mongu?
It is possible that a separate record will be retrieved from the database and updatenut at the same time. That is, as a result, what will be updated last will be preserved. Is it possible to somehow avoid this?
Answer the question
In order to leave comments, you need to log in
Well, if at first it is "gotten", and after 0.0005 seconds the "update" and the "gotten" will no longer be relevant - does it bother you?
It's not clear what you want.
Monga has a bunch of concepts to solve problems like this.
For example, findAndModify or Read Isolation.
However, it is not clear exactly what you want...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question