why not create a database per collection to overcome the write lock?

44 views
Skip to first unread message

Alon Horev

unread,
Sep 30, 2012, 2:53:18 PM9/30/12
to mongod...@googlegroups.com
Hi,

version 2.2 introduces a database-level write lock (instead of a global write lock). 
what are the disadvantages of creating a collection per database?
since there are no joins, All I could think of is easier administration.

         Thanks, Alon Horev

Max Schireson

unread,
Sep 30, 2012, 3:37:45 PM9/30/12
to mongod...@googlegroups.com

You'd likely experience some increased storage requirements as the databases will have separate files for their extents. Sometimes people do this for heavily accessed collections and leave the less accessed ones together.

-- Max

--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
Reply all
Reply to author
Forward
0 new messages