File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -137,14 +137,9 @@ than updating a document on the client side. Specifically, using
137
137
a field in your application, and then writing the entire document back
138
138
to the server.
139
139
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.
148
143
149
144
Perform Server-Side Code Execution
150
145
----------------------------------
@@ -156,7 +151,7 @@ documents in a collection, performing the operation directly on the
156
151
server is more efficient than transmitting the collection to your client
157
152
and back again.
158
153
159
- For more information, see :wiki:`Server-side+Code+Execution`.
154
+ For more information, see :wiki:`Server-side Code Execution <Server-side +Code+Execution> `.
160
155
161
156
Use Capped Collections
162
157
----------------------
You can’t perform that action at this time.
0 commit comments