Skip to content

Commit 88b1348

Browse files
committed
JAVA-1154: Lower GridFS.DEFAULT_CHUNKSIZE from 256K to 255K so that chunks inserted into a collection using power-of-two allocator do not waste a lot of space
1 parent a7f99ab commit 88b1348

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/com/mongodb/gridfs/GridFS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class GridFS {
4949
/**
5050
* file's chunk size
5151
*/
52-
public static final int DEFAULT_CHUNKSIZE = 256 * 1024;
52+
public static final int DEFAULT_CHUNKSIZE = 255 * 1024;
5353

5454
/**
5555
* file's max chunk size

0 commit comments

Comments
 (0)