-
Type: Question
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: MapReduce
-
None
I'm running some map reduce jobs, specifying the out parameter as:
{reduce: <outputCollection>, db: <outputDB>}The output step takes many minutes to complete and seems to lock the entire mongod process while it's running. I've read that the nonAtomic option could perhaps prevent this locking behavior. I'm running multiple map reduce jobs in parallel which all specify the same output collection and db in the reduce step. Does specifying
{nonAtomic: true}ensure that the individual documents in the output collection are updated atomically? Could there exist race conditions between the parallel MR reduce operations since they are reducing to the same collection?
- duplicates
-
SERVER-13552 remove unnecessary global lock during "replace" out action
- Backlog
- related to
-
SERVER-13490 concurrent map/reduce jobs slowed down significantly on OS X
- Closed