Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-39

By default add index on filename to the fs.files collection

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: SAMUS
    • None

      I am opting to add an standard index on filename field in fs.files collection (mongo shell create statement: db.fs.files.ensureIndex(

      {filename:1}

      )). This will increase insert/update performance on GridFS files dramatically.

      Of course any extra index will cost extra storage so maybe an override option to disable creation of this index might be good.

            Assignee:
            sam Sam Corder
            Reporter:
            knippers Daniel Knippers
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: