Skip to content

Commit 1d1d63b

Browse files
committed
DOCS-829 incorporated eric's comments
1 parent d96dcfd commit 1d1d63b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

source/applications/map-reduce.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -226,21 +226,21 @@ The map-reduce operation is composed of many tasks, including:
226226

227227
These various tasks take the following locks:
228228

229-
- The reads from the input collection takes a read lock that is yielded
230-
every 100 documents.
229+
- The read phase takes a read lock. It yields every 100 documents.
231230

232231
- The JavaScript code (i.e. ``map``, ``reduce``, ``finalize``
233232
functions) is executed in a single thread, taking a JavaScript lock;
234233
however, most JavaScript tasks in map-reduce are very short and
235-
yields the lock frequently.
234+
yield the lock frequently.
236235

237236
- The insert into the temporary collection takes a write lock for a
238237
single write.
239238

240-
If the final collection does not exist, the creation of the final
241-
collection the output actions takes a write lock. If the final
242-
collection exists, then the output actions (i.e. ``merge``,
243-
``replace``, ``reduce``) take a write lock.
239+
If the output collection does not exist, the creation of the output
240+
collection takes a write lock.
241+
242+
If the output collection exists, then the output actions (i.e.
243+
``merge``, ``replace``, ``reduce``) take a write lock.
244244

245245
Although single-threaded, the map-reduce tasks interleave and appear to
246246
run in parallel.

0 commit comments

Comments
 (0)