File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -475,16 +475,16 @@ Use the following operation at the Python/PyMongo shell:
475
475
>>> db.command('shardcollection', 'cms.assets.files', {
476
476
... key : { 'metadata.section': 1, 'metadata.slug' : 1 } })
477
477
478
- To shard the ``cms.assetsf .chunks`` collection, you must use the
478
+ To shard the ``cms.assets .chunks`` collection, you must use the
479
479
``_id`` field as the :term:`shard key`. The following operation will
480
- shard the collection:
480
+ shard the collection
481
481
482
482
.. code-block:: pycon
483
483
484
484
>>> db.command('shardcollection', 'cms.assets.chunks')
485
485
486
486
If you do not specific a shard key, when using the
487
487
:dbcommand:`shardcollection` command, MongoDB will shard based on the
488
- ``_id`` field. This also ensures routable queries becasue all reads
488
+ ``_id`` field. This also ensures routable queries because all reads
489
489
from GridFS must first look up the document in ``cms.assets.files``
490
490
and then look up the chunks separately.
You can’t perform that action at this time.
0 commit comments