Skip to content

Commit e9c1f70

Browse files
author
Bob Grabar
committed
DOCS-766 verify bulk inserts
1 parent d0fb49c commit e9c1f70

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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.

source/reference/method/db.collection.insert.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

source/release-notes/2.0.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,8 @@ most recent :dbcommand:`getLastError` results.
330330

331331
See :wiki:`OP_INSERT <Mongo+Wire+Protocol#MongoWireProtocol-OPINSERT>`.
332332

333+
.. include:: /includes/note-bulk-inserts-on-sharded-clusters.rst
334+
333335
Map Reduce
334336
~~~~~~~~~~
335337

source/release-notes/2.2.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,8 @@ If you pass an array of :term:`documents <document>` to the
584584
shell 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+
587589
Operations
588590
~~~~~~~~~~
589591

source/tutorial/manage-chunks-in-sharded-cluster.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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
317316
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:
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

0 commit comments

Comments
 (0)