@@ -54,7 +54,7 @@ MongoDB has the following features:
54
54
cluster without intervention from the application
55
55
layer. Effective automatic sharding depends on a well chosen
56
56
:ref:`shard key <sharding-shard-key>`, but requires no
57
- additional complexity, modifications, or intervention from
57
+ additional complexity, modifications, or intervention from
58
58
developers.
59
59
60
60
Transparent Sharding
@@ -213,10 +213,9 @@ for your data service needs.
213
213
possibility of more even data distribution, but increase the
214
214
likelihood of chunk migrations. Larger chunks decrease the need for
215
215
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.
220
219
221
220
.. index:: shard key
222
221
single: sharding; shard key
@@ -387,14 +386,14 @@ as "**targeted**" or "**global**, as follows:
387
386
specific :program:`mongod` or a small number of :program:`mongod`
388
387
instances:
389
388
390
- .. code-block:: javascript
389
+ .. code-block:: javascript
391
390
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 } )
398
397
399
398
#. *Global* operations, where the :program:`mongos` sends the
400
399
operations to *all* :program:`mongod` instances, and then combines
0 commit comments