Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-9741

Comment on: "manual/core/gridfs.txt"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Duplicate
    • None
    • None
    • None

    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

          Activity

            People

              ravind.kumar Ravind Kumar (Inactive)
              kai.orend@mongodb.com Kai Orend
              Jess Mokrzecki Jess Mokrzecki
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                6 years, 22 weeks, 4 days ago