[DOCS-524] Turn recommendation into example for padding with compact Created: 14/Sep/12 Updated: 30/Oct/23 Resolved: 17/Sep/12 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | v1.0 |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Daniel Pasette (Inactive) | Assignee: | Kay Kim (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 11 years, 22 weeks, 1 day ago |
| Description |
|
http://docs.mongodb.org/manual/reference/commands/#compact Where did the the section recommending 10% or 100 bytes of padding come from? This is not something that should be recommended as a hard and fast rule, but the information should be preserved as an example showing how one can use paddingFactor and paddingBytes options to compact. |
| Comments |
| Comment by auto [ 19/Sep/12 ] |
|
Author: {u'date': u'2012-09-18T17:46:02-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}Message: merge: |
| Comment by auto [ 19/Sep/12 ] |
|
Author: {u'date': u'2012-09-18T12:41:21-07:00', u'email': u'kay.kim@10gen.com', u'name': u'kay'}Message: |
| Comment by auto [ 19/Sep/12 ] |
|
Author: {u'date': u'2012-09-18T07:12:53-07:00', u'email': u'kay.kim@10gen.com', u'name': u'kay'}Message: |
| Comment by Kay Kim (Inactive) [ 17/Sep/12 ] |
|
Hey Dan – I think I can kind of explain the padding equation: paddingFactor: 4.0 would only add 120 bytes (i.e. 40 * (4.0 - 1)) of If we gloss over some of the other manipulations, the source code allocates I'm going to set up a meeting with either Mathias to discuss some of these oldObjSize += sz; unsigned lenWHdr = sz + Record::HeaderSize; } For now, I'll comment out the equation in the documentation. Although, Regards, Kay |
| Comment by Kay Kim (Inactive) [ 17/Sep/12 ] |
|
Hi Dan – http://docs.mongodb.org/manual/reference/command/compact/ Also, this morning, you mentioned that the old DOC page seemed misleading Regards, Kay |
| Comment by auto [ 17/Sep/12 ] |
|
Author: {u'date': u'2012-09-17T09:39:57-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}Message: merge: |
| Comment by auto [ 17/Sep/12 ] |
|
Author: {u'date': u'2012-09-17T09:15:46-07:00', u'email': u'kay.kim@10gen.com', u'name': u'kay'}Message: |
| Comment by auto [ 17/Sep/12 ] |
|
Author: {u'date': u'2012-09-17T07:29:09-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}Message: |
| Comment by auto [ 17/Sep/12 ] |
|
Author: {u'date': u'2012-09-17T07:25:56-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}Message: merge: |
| Comment by auto [ 17/Sep/12 ] |
|
Author: {u'date': u'2012-09-14T20:28:33-07:00', u'email': u'kay.kim@10gen.com', u'name': u'kay'}Message: |