[DOCS-1025] usePowerOf2Sizes doc should state that power of two sizes are not always used when this mode is enabled Created: 22/Jan/13 Updated: 30/Oct/23 Resolved: 12/Feb/13 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Aaron Staple | Assignee: | Sam Kleinman (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Participants: | |||||
| Days since reply: | 10 years, 50 weeks, 6 days ago | ||||
| Description |
|
The usePowerOf2Sizes documentation states that "By setting usePowerOf2Sizes, you ensure that MongoDB will allocate space for documents in sizes that are powers of 2 (e.g. 4, 8, 16, 32, 64, 128, 256, 512...8388608)" <http://docs.mongodb.org/manual/reference/command/collMod/> However, when there is an allocation greater than >= 4mb the allocation will be quantized to a 1mb boundary not to a power of two size boundary. The relevant code is |
| Comments |
| Comment by auto [ 28/Feb/13 ] |
|
Author: {u'date': u'2013-02-28T14:59:05Z', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: |
| Comment by auto [ 28/Feb/13 ] |
|
Author: {u'date': u'2013-02-28T14:59:05Z', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: |
| Comment by Scott Hernandez (Inactive) [ 28/Feb/13 ] |
|
We should note that in capped collections they won't apply either: |
| Comment by auto [ 28/Feb/13 ] |
|
Author: {u'date': u'2013-02-27T21:04:52Z', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: |
| Comment by auto [ 12/Feb/13 ] |
|
Author: {u'date': u'2013-02-12T00:39:36Z', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: |
| Comment by auto [ 12/Feb/13 ] |
|
Author: {u'date': u'2013-02-12T00:13:57Z', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: |