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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • SAMUS
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: