H
H
HellishCode2020-12-07 20:37:20
MongoDB
HellishCode, 2020-12-07 20:37:20

Concurrency in MongoDB. How to lock up the base?

Good afternoon.
Trying to solve a parallel problem with Mongo.
I found something like the right material, but I can't figure out how to use it in NodeJS
Please, how can I properly lock the database?
Should I write the following in code or not?
db.serverStatus( { locks: 1 } )

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question