开发者

MongoDB Concurrency

开发者 https://www.devze.com 2022-12-22 08:59 出处:网络
I\'m a little confused about MongoDB\'s read locking. How many concurrent read operations can a single collection开发者_运维百科 support?As written in the link given by tk : http://www.mongodb.org/pag

I'm a little confused about MongoDB's read locking. How many concurrent read operations can a single collection开发者_运维百科 support?


As written in the link given by tk : http://www.mongodb.org/pages/viewpage.action?pageId=7209296

Read/Write Lock

mongod uses a read/write lock for many operations. Any number of concurrent read operations are allowed, but typically only one write operation (although some write operations yield and in the future more concurrency will be added). The write lock acquisition is greedy: a pending write lock acquisition will prevent further read lock acquisitions until fulfilled.

Typical read/write lock


You can check here: http://www.mongodb.org/pages/viewpage.action?pageId=7209296

0

精彩评论

暂无评论...
验证码 换一张
取 消