It's not possible to lock a mongodb document. What if I need to?

前端 未结 12 1723
死守一世寂寞
死守一世寂寞 2020-12-24 11:34

I know that I can\'t lock a single mongodb document, in fact there is no way to lock a collection either.

However, I\'ve got this scenario, where I think I need some

12条回答
  •  忘掉有多难
    2020-12-24 12:14

    Sounds like you want to use MongoDB's atomic operators: http://www.mongodb.org/display/DOCS/Atomic+Operations

提交回复
热议问题