filename index created on wrong collection

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.4.0
    • Affects Version/s: None
    • Component/s: GridFS
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              A. Jesse Jiryu Davis
              Reporter:
              A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: