How can we find random document matching given query and update it atomically in mongoDB?

前端 未结 0 636
小蘑菇
小蘑菇 2020-12-17 02:21

FindOneAndUpdate picks documents sequentially. Is there a way to pick a random document matching our query and update it atomically?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题