Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2028

The GridFS chunk size is wrong

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • 3.1.1, 3.2.0
    • 3.1.0
    • GridFS
    • Linux

    Description

      The default chunk size in GridFSBucketImpl is 255 bytes not 255k bytes as documented in the GridFS manual (https://docs.mongodb.org/manual/core/gridfs/). This causes a severe performance penalty when uploading medium sized files. As an example uploading a ~32MB file using 255 byte chunks can take +30 minutes while using 255k bytes blocks takes several seconds.

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            rerupp Rick Rupp
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: