Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1190

filename index created on wrong collection

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: None
    • Component/s: GridFS
    • None

      db.fs.files is supposed to have an index ensured on "filename". Instead, the index is created on db.fs.chunks, where it isn't useful.

      The GridFS spec says:

      For efficient execution of various GridFS operations the following indexes MUST exist:

      • an index on { filename : 1, uploadDate : 1 } on the files collection
      • a unique index on { files_id : 1, n : 1 } on the chunks collection

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: