求助 mongodb 中很多option中 w:1的意思是什么
发布于 9个月前 作者 sjfkai 640 次浏览

小弟英文能力有限,故求大神详细的讲解一下。 英文解释如下 w, {Number/String, > -1 || ‘majority’ || tag name} the write concern for the operation where < 1 is no acknowledgement of write and w >= 1, w = ‘majority’ or tag acknowledges the write

感激不尽

3 回复

http://kyfxbl.iteye.com/blog/1952941

这里有很详细的回答

-1 = don’t even report network errors 0 = default, don’t call getLastError by default 1 = basic, call getLastError, but don’t wait for slaves 2+= wait for slaves

回到顶部