MongoDB 2.2 has a write lock for each database, and not a global write lock on the server in previous versions. So it would be nice if I stored each collection in a separate database in order to effectively have a write lock for each collection (this will make it look like a MyISAM table level lock). Is this approach wrong?
There is a key restriction for blocking and this is the database local. This database contains a collection oplogthat is used for replication.
local
oplog
, . , .
10 10 , oplog.
, , oplog .
, , MongoDB DB. - , .
, , 10gen .
, , . , , 2-5 . , , , , .