[DOCS-4327] Change documentation to reflect changed power of two sizing for MMAPv1 Created: 11/Nov/14  Updated: 16/Mar/15  Resolved: 12/Dec/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.15, mongodb-3.0

Type: Task Priority: Major - P3
Reporter: Michael Paik Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-16195 createCollection shell helper should ... Closed
Related
related to SERVER-15273 Only allocate powerOfTwo sized record... Closed
is related to DOCS-4322 Document new flag for MMAPv1 to preve... Closed
Participants:
Days since reply: 9 years, 9 weeks ago

 Description   

Power of two sizing is now enforced unless the noPadding flag is supplied; the existing power of two flag to collMod is ignored and should be considered deprecated.



 Comments   
Comment by Githook User [ 17/Dec/14 ]

Author:

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

Message: DOCS-4327: release notes note for powerOf2Sizing
Branch: master
https://github.com/mongodb/docs/commit/6c15401d39f148cef7d8d4258dc731f42ddac59a

Comment by Githook User [ 17/Dec/14 ]

Author:

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

Message: DOCS-4327: more noPadding documentation
Branch: master
https://github.com/mongodb/docs/commit/0eae3149bcd3b3e83003a3d1c00c1bb7bacd958d

Comment by Githook User [ 17/Dec/14 ]

Author:

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

Message: DOCS-4327: add noPadding option to createCollection
Branch: master
https://github.com/mongodb/docs/commit/61b08967640e125a9638ef98736171c4056b16e4

Comment by Daniel Pasette (Inactive) [ 08/Dec/14 ]

so, we should be clear that the noPadding can be used from createCollection as well as from the collMod cmd.

e.g.

db.createCollection('jared', {noPadding:true})

and:

db.jared.runCommand("collMod", {noPadding:true})

To verify the setting has been correctly set, you can check collection stats:

> db.jared.stats()
{
	"ns" : "dan.jared",
	"count" : 0,
	"size" : 0,
	"numExtents" : 1,
	"storageSize" : 8192,
	"nindexes" : 1,
	"lastExtentSize" : 8192,
	"paddingFactor" : 1,
	"paddingFactorNote" : "paddingFactor is unused and unmaintained in 2.8. It remains hard coded to 1.0 for compatibility only.",
	"userFlags" : 2,  <== This means noPadding is set
	"totalIndexSize" : 8176,
	"indexSizes" : {
		"_id_" : 8176
	},
	"ok" : 1
}

> db.jared.stats()
{
	"ns" : "dan.jared",
	"count" : 0,
	"size" : 0,
	"numExtents" : 1,
	"storageSize" : 8192,
	"nindexes" : 1,
	"lastExtentSize" : 8192,
	"paddingFactor" : 1,
	"paddingFactorNote" : "paddingFactor is unused and unmaintained in 2.8. It remains hard coded to 1.0 for compatibility only.",
	"userFlags" : 0, <== this means use the default (aka, powerOf2)
	"totalIndexSize" : 8176,
	"indexSizes" : {
		"_id_" : 8176
	},
	"ok" : 1
}

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