[DOCS-276] Add documentation for usePowerOf2Sizes Created: 28/Jun/12  Updated: 30/Oct/23  Resolved: 06/Jul/12

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

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

Issue Links:
Depends
depends on SERVER-5046 per collection option to pad to power... Closed
Related
related to SERVER-2958 Freelist algorithm causes storage fra... Closed
related to DOCS-1358 collMod reference should include ment... Closed
Participants:
Days since reply: 11 years, 32 weeks, 1 day ago

 Description   

We need documentation for the new "usePowerOf2Sizes" collection-level flag, as well as the new "collMod" command which lets you set that flag. I believe the syntax is:

db.mycoll.runCommand( "collMod" ,

{ "usePowerOf2Sizes" : true }

)



 Comments   
Comment by auto [ 10/Jul/12 ]

Author:

{u'date': u'2012-07-10T15:55:07-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}

Message: DOCS-276 clarifying representation of bitmask values
Branch: master
https://github.com/mongodb/docs/commit/1cd0431637eb281a5308a7eead0a28e6b9a235c1

Comment by auto [ 06/Jul/12 ]

Author:

{u'date': u'2012-07-06T15:13:03-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}

Message: merge: DOCS-276 merging in change
Branch: master
https://github.com/mongodb/docs/commit/fc53a3d82e79682f7ea51e792117a82b6c526e0e

Comment by Kevin Matulef [ 06/Jul/12 ]

LGTM. You might ask Eliot whether there is a way to explicitly see which userFlags are set.

Comment by Sam Kleinman (Inactive) [ 06/Jul/12 ]

https://github.com/mongodb/docs/pull/56

Comment by Kevin Matulef [ 05/Jul/12 ]

Currently, "usePowerOf2Sizes" is the only flag that the collMod command does anything with. This is sort of confusing. I actually just filed SERVER-6314 and SERVER-6316 regarding the collMod command.

It might be worth having an "addFlag" shell helper at some point, but not really necessary now, since the collMod command only does this one thing.

Comment by Sam Kleinman (Inactive) [ 05/Jul/12 ]

are there other collection level-flags? there currently isn't a place for them, and I'm thinking that, at least for the next little while, putting them within the reference for for collMod might be the best way to go...

Comment by Sam Kleinman (Inactive) [ 05/Jul/12 ]

is there/will there be a shell helper?

Comment by Kevin Matulef [ 05/Jul/12 ]

The syntax Eric mentioned is wrong. The correct syntax is

> db.runCommand( {"collMod" : collectionname , "usePowerOf2Sizes" : true" } )

Comment by Kevin Matulef [ 28/Jun/12 ]

Eric mentions the syntax here SERVER-2958

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