Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-525

make it possible to override _id for GridFS file

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.8.0
    • None
    • None
    • None

    Description

      This is needed for proper sharding support.
      Right now it's hardcoded to use an ObjectId which means it's ever growing and hits the same shard.

      Also it would allow to have a unique constraint on filename, if it's used as _id.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            antoine Antoine Girbal
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: