Re:Cassandra vs MongoDB For Time Series Data
by arohner on Wednesday August 21, 2013 @06:01PM
(#6253598)
Mongo does have a global write lock. A per-db lock does me very little good when I only have one DB.
As to your linked doc, emphasis added:
> In some situations, read and write operations can yield their locks.
> Long running read and write operations, such as queries, updates, and deletes, yield under many conditions.
In practice, I've been bitten hard by this. A new feature rolls out, and users can't log in anymore, because a query is taking 2 minutes to run.
Even if Mongo did have a global write lock, which it doesn't as has already been covered, it yields on page faults which means that other queries are minimally impacted. See: http://docs.mongodb.org/manual/faq/concurrency/#does-a-read-...