Skip to content

Commit a906cab

Browse files
author
Bob Grabar
committed
DOCS-665 minor
1 parent 6e50380 commit a906cab

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

source/applications/optimization.txt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,9 @@ than updating a document on the client side. Specifically, using
137137
a field in your application, and then writing the entire document back
138138
to the server.
139139

140-
.. note:: Two threads using :operator:`$inc` to increment the same value
141-
can cause a race condition.
142-
143-
Typically these operations also are fast because they don't require
144-
sending data between the clients.
145-
146-
.. DELETED: nor moving the record in the data store, as would occur if incrementing
147-
the value increased the size of the document on disk.
140+
The :operator:`$inc` operator also avoids race conditions, as would
141+
occur if two threads simultaneously queried for a document, manually
142+
incremented a field, and saved the entire document back.
148143

149144
Perform Server-Side Code Execution
150145
----------------------------------
@@ -156,7 +151,7 @@ documents in a collection, performing the operation directly on the
156151
server is more efficient than transmitting the collection to your client
157152
and back again.
158153

159-
For more information, see :wiki:`Server-side+Code+Execution`.
154+
For more information, see :wiki:`Server-side Code Execution <Server-side+Code+Execution>`.
160155

161156
Use Capped Collections
162157
----------------------

0 commit comments

Comments
 (0)