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()
1414 an array of documents to perform a bulk insert of the
1515 documents into the collection.
1616
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+
1721 Consider the following behaviors of the :method:`insert()
1822 <db.collection.insert()>` method:
1923
Original file line number Diff line number Diff line change @@ -330,6 +330,8 @@ most recent :dbcommand:`getLastError` results.
330330
331331See :wiki:`OP_INSERT <Mongo+Wire+Protocol#MongoWireProtocol-OPINSERT>`.
332332
333+ .. include:: /includes/note-bulk-inserts-on-sharded-clusters.rst
334+
333335Map Reduce
334336~~~~~~~~~~
335337
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
584584shell will now perform a bulk insert operation. See
585585:issue:`SERVER-3819` and :issue:`SERVER-2395` for more information.
586586
587+ .. include:: /includes/note-bulk-inserts-on-sharded-clusters.rst
588+
587589Operations
588590~~~~~~~~~~
589591
Original file line number Diff line number Diff line change @@ -312,11 +312,9 @@ Strategies for Bulk Inserts in Sharded Clusters
312312.. todo:: link the words "bulk insert" to the bulk insert topic when
313313 it's published
314314
315-
316- Large bulk insert operations including initial data ingestion or
315+ Large bulk insert operations, including initial data ingestion or
317316routine 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:
320318
321319- If the collection does not have data, then there is only one
322320 :term:`chunk`, which must reside on a single shard. MongoDB must
@@ -370,3 +368,7 @@ bulk insert operations:
370368 and see :ref:`Shard Key Internals <sharding-internals-shard-keys>` (in
371369 particular, :ref:`sharding-internals-operations-and-reliability` and
372370 :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