How does MongoDB deal with concurrent updates?

后端 未结 2 1011
太阳男子
太阳男子 2020-11-27 07:12

I started to use MongoDB at work so far so good. I was wondering though how does MongoDB deal with concurrent updates ? I\'ve read that there is no locking feature in MongoD

2条回答
  •  甜味超标
    2020-11-27 07:23

    Use modifier operations:

    $inc $set $unset $push $pushAll $addToSet $pop $pull $pullAll $rename $bit

    all of them are atomic.

提交回复
热议问题