我对 MongoDB 的读锁定有点困惑。单个集合可以支持多少个并发读取操作?
最佳答案
如 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.
典型的读/写锁
关于MongoDB 并发,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2398313/