[DOCS-2991] Update GridFS chunk size default to 255k Created: 24/Mar/14  Updated: 04/Mar/15  Resolved: 01/Apr/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.3

Type: Task Priority: Major - P3
Reporter: Jeremy Mikola Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: sprint-slipstream
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-13331 GridFS chunks collection should lower... Closed
Participants:
Days since reply: 9 years, 46 weeks, 1 day ago

 Description   

This is being changed for 2.4.10 and 2.6.0-rc3. tyler@10gen.com's explanation:

Now that the server uses power of 2 by default, if the default chunk size for gridfs is 256k we will almost always be throwing away some storage space. This is because if the bindata field of a chunk will occupy 256k (an exact power of 2), then _id and foreign key reference to the files collection, etc will take up additional space that will cause the document's allocated storage to be rounded up to 512k (the next power of 2). This would be a huge waste.

Instead, if we make the default chunk size 255k then we have an extra 1k to store the _id and other metadata so that when the document is persisted we round up to 256k and not 512k upon persisting the document.



 Comments   
Comment by Githook User [ 01/Apr/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2991: changes to gridfs chunk size
Branch: v2.4
https://github.com/mongodb/docs/commit/31a41963506de93fa9077fc27c3b0d57bbd625f0

Comment by Githook User [ 01/Apr/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2991: changes to gridfs chunk size
Branch: master
https://github.com/mongodb/docs/commit/52712af9c36925da02ebe834fb2d87402f8e3dd5

Generated at Thu Feb 08 07:44:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.