Just want to know if my database has about 50 queries per sec in production, will it still be able to run normally while do these operation?
My server info is:
- Normal replica 2 machine with no sharding.
- Just use capped collection for logging purpose only. No read. It’s write heavy.
- 8GB of RAM
The documentation [1] about concurrency is quite clear:
“When a read lock exists, many read operations may use this lock. However, when a write lock exists, a single write operation holds the lock exclusively, and no other read or write operations may share the lock.”
Insert, update, and delete operations use a write lock.
Basically that means all you inserts will happen sequentially, so it’s a matter of how fast Mongo writes the data.
[1] http://docs.mongodb.org/manual/faq/concurrency/#which-administrative-commands-lock-the-database