MongoDB 并发

标签 mongodb database

我对 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/

相关文章:

node.js - 如何检查具有电子邮件的用户是否已经存在?

node.js - 使用 MongoClient.connect() 时的 saslprep 警告

database - 为什么以及何时使用 Liquibase?

database - 使用 OOPS 设计数据库表架构?

mysql - 你知道 mysql 数据库的免费测试数据生成器吗?

javascript - Meteor JS 中的搜索工具

reactjs - 如何在 Next.js 中使用 MongoDB Stitch

database - 类似于 MS Access,但在云端

sql - 查询通过键值对链接到实际匹配条件的记录的记录

mongodb - 删除 MongoDB 中的重复项