MongoDB: WriteResult.getN() always returns 0?

前端 未结 3 2088
隐瞒了意图╮
隐瞒了意图╮ 2021-01-17 12:47

According to the javaDoc, getN() method of WriteResult class in MongoDB-java returns the number of documents updated in the opertion. But it always

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-17 13:34

    You may also want to check http://docs.mongodb.org/manual/core/write-concern/

    The dafault behaviour is not to use the "safe" write concern

提交回复
热议问题