MongoDB:对数据库的读写是并发的吗? [英] MongoDB :are reads/writes to database concurrent?

查看:455
本文介绍了MongoDB:对数据库的读写是并发的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当数百万个线程同时尝试read fromwrite to MongoDB时会发生什么? db-level, table-level or row-level会发生锁定吗?

What happens when million threads try to read from and write to MongoDB at the same time? does locking happens on a db-level, table-level or row-level?

推荐答案

它发生在数据库级别,但是在Mongo 2.0中,有几种并发方法,例如通过_id字段进行插入/更新.

It happens at db-level, however with Mongo 2.0 there are a few methods for concurrency, such as inserting/updating by the _id field.

这篇关于MongoDB:对数据库的读写是并发的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆