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

The GridFS chunk size is wrong

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 3.1.1, 3.2.0
    • Affects Version/s: 3.1.0
    • Component/s: GridFS
    • Labels:
    • Environment:
      Linux

      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.

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

              Created:
              Updated:
              Resolved: