Details
-
Bug
-
Status: Closed
-
Minor - P4
-
Resolution: Duplicate
-
None
-
None
-
None
-
*Location*: https://docs.mongodb.com/manual/core/gridfs/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0
*Referrer*: https://www.google.de/
*Screen Resolution*: 1920 x 1200
Description
Even though the sharding section for GridFS mentions that the field_id is monotonically increasing and that it is not possible use a hashed shard key in this case, it does not provide a solution for sharding GridFS without creating a hotspot for new files. One option to solve this problem that we could mention here is that it is possible to use a custom file_id, which could for instance be a random string, like a UUID. This would allow new files to be distributed evenly across all shards.
Attachments
Issue Links
- documents
-
TOOLS-1591 mongofiles should support custom GridFS files._id
-
- Closed
-
- is duplicated by
-
DOCS-10993 Improve Sharding GridFS information
-
- Closed
-
- related to
-
DRIVERS-299 Custom GridFS files._id
-
- Closed
-