Answer the question
In order to leave comments, you need to log in
How to implement atamarity in MongoDb?
Good afternoon.
I have a mongodb database where multiple nodes handle reading and writing documents. You need to make sure that only one process can work with the document at a time. That is, I need to lock the database at some point, and then release it after the process has completed and updated the records, that is, so that only one process can update my records, and several at the same time.
Answer the question
In order to leave comments, you need to log in
The very first link in Google leads to the documentation:
https://docs.mongodb.com/manual/core/write-operati...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question