Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6694

C++ driver for GridFS should create unique index on files_id, n

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.3.0
    • None
    • Tools

    Description

      The mongofiles tool, which uses the C++ driver, will create an index on

      {files_id:1, n:1}

      if it doesn't already exist for the fs.chunks collection when storing a file. That index should be created as unique, but it isn't currently. Many drivers (pymongo at least) do this already.

      Attachments

        Activity

          People

            siddharth.singh@10gen.com siddharth.singh@10gen.com
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: