Skip to content

Commit 02be2ab

Browse files
author
Sam Kleinman
committed
fixing sharding documentation rst
1 parent 7cb1118 commit 02be2ab

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

draft/core/sharding.txt

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ MongoDB has the following features:
5454
cluster without intervention from the application
5555
layer. Effective automatic sharding depends on a well chosen
5656
:ref:`shard key <sharding-shard-key>`, but requires no
57-
additional complexity, modifications, or intervention from
57+
additional complexity, modifications, or intervention from
5858
developers.
5959

6060
Transparent Sharding
@@ -213,10 +213,9 @@ for your data service needs.
213213
possibility of more even data distribution, but increase the
214214
likelihood of chunk migrations. Larger chunks decrease the need for
215215
migrations, but increase the amount of time required for a chunk
216-
migration.
217-
218-
.. seealso:: The ":ref:`sharding-chunk-size`" section in the
219-
:doc:`sharding-internals` document.
216+
migration. See the ":ref:`sharding-chunk-size`" section in the
217+
:doc:`sharding-internals` document for more information on this
218+
topic.
220219

221220
.. index:: shard key
222221
single: sharding; shard key
@@ -387,14 +386,14 @@ as "**targeted**" or "**global**, as follows:
387386
specific :program:`mongod` or a small number of :program:`mongod`
388387
instances:
389388

390-
.. code-block:: javascript
389+
.. code-block:: javascript
391390

392-
db.collection.find( { shard_id: 355 } )
393-
db.collection.find( { shard_id: 52, host: "example.org" } )
394-
db.collection.insert( { shard_id: 155, host: "example.net", [...] } )
395-
db.collection.insert( { [...] } ) // all insert operations are targeted.
396-
db.collection.update( { shard_id: 112, host: "example.org"} , { $inc: { counter: 1 } } )
397-
db.collection.remove( { shard_id: 355 } )
391+
db.collection.find( { shard_id: 355 } )
392+
db.collection.find( { shard_id: 52, host: "example.org" } )
393+
db.collection.insert( { shard_id: 155, host: "example.net", [...] } )
394+
db.collection.insert( { [...] } ) // all insert operations are targeted.
395+
db.collection.update( { shard_id: 112, host: "example.org"} , { $inc: { counter: 1 } } )
396+
db.collection.remove( { shard_id: 355 } )
398397

399398
#. *Global* operations, where the :program:`mongos` sends the
400399
operations to *all* :program:`mongod` instances, and then combines

0 commit comments

Comments
 (0)