File tree Expand file tree Collapse file tree 5 files changed +19
-4
lines changed Expand file tree Collapse file tree 5 files changed +19
-4
lines changed Original file line number Diff line number Diff line change
1
+ .. note ::
2
+
3
+ For bulk inserts on sharded clusters, the :dbcommand: `getLastError `
4
+ command alone is insufficient to verify success. Your application
5
+ must also verify bulk inserts through application logic.
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ db.collection.insert()
14
14
an array of documents to perform a bulk insert of the
15
15
documents into the collection.
16
16
17
+ .. include:: /includes/note-bulk-inserts-on-sharded-clusters.rst
18
+
19
+ .. todo:: for 2.4, remove: /includes/note-bulk-inserts-on-sharded-clusters.rst
20
+
17
21
Consider the following behaviors of the :method:`insert()
18
22
<db.collection.insert()>` method:
19
23
Original file line number Diff line number Diff line change @@ -330,6 +330,8 @@ most recent :dbcommand:`getLastError` results.
330
330
331
331
See :wiki:`OP_INSERT <Mongo+Wire+Protocol#MongoWireProtocol-OPINSERT>`.
332
332
333
+ .. include:: /includes/note-bulk-inserts-on-sharded-clusters.rst
334
+
333
335
Map Reduce
334
336
~~~~~~~~~~
335
337
Original file line number Diff line number Diff line change @@ -584,6 +584,8 @@ If you pass an array of :term:`documents <document>` to the
584
584
shell will now perform a bulk insert operation. See
585
585
:issue:`SERVER-3819` and :issue:`SERVER-2395` for more information.
586
586
587
+ .. include:: /includes/note-bulk-inserts-on-sharded-clusters.rst
588
+
587
589
Operations
588
590
~~~~~~~~~~
589
591
Original file line number Diff line number Diff line change @@ -312,11 +312,9 @@ Strategies for Bulk Inserts in Sharded Clusters
312
312
.. todo:: link the words "bulk insert" to the bulk insert topic when
313
313
it's published
314
314
315
-
316
- Large bulk insert operations including initial data ingestion or
315
+ Large bulk insert operations, including initial data ingestion or
317
316
routine data import, can have a significant impact on a :term:`sharded
318
- cluster`. Consider the following strategies and possibilities for
319
- bulk insert operations:
317
+ cluster`. For bulk insert operations, consider the following strategies:
320
318
321
319
- If the collection does not have data, then there is only one
322
320
:term:`chunk`, which must reside on a single shard. MongoDB must
@@ -370,3 +368,7 @@ bulk insert operations:
370
368
and see :ref:`Shard Key Internals <sharding-internals-shard-keys>` (in
371
369
particular, :ref:`sharding-internals-operations-and-reliability` and
372
370
:ref:`sharding-internals-choose-shard-key`).
371
+
372
+ .. todo:: remove the below include for 2.4
373
+
374
+ .. include:: /includes/note-bulk-inserts-on-sharded-clusters.rst
You can’t perform that action at this time.
0 commit comments