Skip to content

DOCS-766 verify bulk inserts #672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 22, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions source/includes/note-bulk-inserts-on-sharded-clusters.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.. note::

For bulk inserts on sharded clusters, the :dbcommand:`getLastError`
command alone is insufficient to verify success. Your application
must also verify bulk inserts through application logic.
4 changes: 4 additions & 0 deletions source/reference/method/db.collection.insert.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ db.collection.insert()
an array of documents to perform a bulk insert of the
documents into the collection.

.. include:: /includes/note-bulk-inserts-on-sharded-clusters.rst

.. todo:: for 2.4, remove: /includes/note-bulk-inserts-on-sharded-clusters.rst

Consider the following behaviors of the :method:`insert()
<db.collection.insert()>` method:

Expand Down
2 changes: 2 additions & 0 deletions source/release-notes/2.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ most recent :dbcommand:`getLastError` results.

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

.. include:: /includes/note-bulk-inserts-on-sharded-clusters.rst

Map Reduce
~~~~~~~~~~

Expand Down
2 changes: 2 additions & 0 deletions source/release-notes/2.2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,8 @@ If you pass an array of :term:`documents <document>` to the
shell will now perform a bulk insert operation. See
:issue:`SERVER-3819` and :issue:`SERVER-2395` for more information.

.. include:: /includes/note-bulk-inserts-on-sharded-clusters.rst

Operations
~~~~~~~~~~

Expand Down
10 changes: 6 additions & 4 deletions source/tutorial/manage-chunks-in-sharded-cluster.txt
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,9 @@ Strategies for Bulk Inserts in Sharded Clusters
.. todo:: link the words "bulk insert" to the bulk insert topic when
it's published


Large bulk insert operations including initial data ingestion or
Large bulk insert operations, including initial data ingestion or
routine data import, can have a significant impact on a :term:`sharded
cluster`. Consider the following strategies and possibilities for
bulk insert operations:
cluster`. For bulk insert operations, consider the following strategies:

- If the collection does not have data, then there is only one
:term:`chunk`, which must reside on a single shard. MongoDB must
Expand Down Expand Up @@ -370,3 +368,7 @@ bulk insert operations:
and see :ref:`Shard Key Internals <sharding-internals-shard-keys>` (in
particular, :ref:`sharding-internals-operations-and-reliability` and
:ref:`sharding-internals-choose-shard-key`).

.. todo:: remove the below include for 2.4

.. include:: /includes/note-bulk-inserts-on-sharded-clusters.rst