@@ -74,11 +74,11 @@ can update the metadata field that indicates "latest" status in an
74
74
atomic update after uploading the new version of the file, and later
75
75
remove previous versions if needed.
76
76
77
- Furthermore, if your files are all smaller the 16 MB :limit:`BSON
78
- Document Size` limit, consider storing the file manually within a
79
- single document instead of using GridFS. You may use the BinData data
80
- type to store the binary data. See your :doc:`drivers
81
- </applications/drivers>` documentation for details on using BinData.
77
+ Furthermore, if your files are all smaller than the 16 MB :limit:`BSON
78
+ Document Size` limit, consider storing each file in a single document instead
79
+ of using GridFS. You may use the BinData data type to store the binary data.
80
+ See your :doc:`drivers </applications/drivers>` documentation for details on
81
+ using BinData.
82
82
83
83
.. index:: GridFS; initialize
84
84
.. _gridfs-use:
@@ -316,12 +316,12 @@ index.
316
316
``files_id`` is an :term:`objectid` and changes
317
317
:ref:`monotonically<shard-key-monotonic>`.
318
318
319
- You cannot use :doc:`/core/hashed-sharding` when sharding the ``chunks``
319
+ You cannot use :doc:`/core/hashed-sharding` when sharding the ``chunks``
320
320
collection.
321
321
322
322
The ``files`` collection is small and only contains metadata. None of the
323
- required keys for GridFS lend themselves to an even distribution in a
324
- sharded environment. If you *must* shard the ``files`` collection, use the
323
+ required keys for GridFS lend themselves to an even distribution in a
324
+ sharded environment. If you *must* shard the ``files`` collection, use the
325
325
``_id`` field, possibly in combination with an application field.
326
326
327
327
Leaving ``files`` unsharded allows all the file metadata documents to live
0 commit comments