gpt4 book ai didi

MongoDB 并发

转载 作者:可可西里 更新时间:2023-11-01 09:57:11 27 4
gpt4 key购买 nike

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

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com