Sign In Register

How can we help you today?

Start a new topic

What level of locking does Mongodb use?


What level of locking does Mongodb use?

Global? Level/collection? or Document?



1 Comment

Hi Jo,


MongoDB uses these levels of locking as standard to prevent two users from updating a collection etc, at the same time.

We do have a Spark.Lock feature which allows for the concurrent sending of requests in the context of a challenge.

We also have Spark.lockKey which creates a lock on an arbitrary key. Whilst the script 'owns' this lock no other script can lock on the same key, and will be blocked until the lock is released. This would be useful for situations where there may be concurrent access required to an object or data. 

Let me know if you need anything else.




Login to post a comment