Creating a different database for each collection in MongoDB 2.2

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?

+5
source share
2 answers

There is a key restriction for blocking and this is the database local. This database contains a collection oplogthat is used for replication.

, . , .

10 10 , oplog.

, , oplog .

, , MongoDB DB. - , .

+6

, , 10gen .

, , . , , 2-5 . , , , , .

+2

All Articles