H
H
HellishCode2020-12-09 23:39:56
MongoDB
HellishCode, 2020-12-09 23:39:56

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

1 answer(s)
V
Vasily Bannikov, 2020-12-09
@vabka

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 question

Ask a Question

731 491 924 answers to any question