[DOCS-10339] The dataSize doc page does not mention the existence of "estimate" parameter Created: 02/Jun/17 Updated: 29/Oct/23 Resolved: 26/Oct/17 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual, Server |
| Affects Version/s: | None |
| Fix Version/s: | 1.7.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kevin Adistambha | Assignee: | Kevin Adistambha |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Location: https://docs.mongodb.com/manual/reference/command/dataSize/ |
||
| Issue Links: |
|
||||||||||||
| Participants: | |||||||||||||
| Days since reply: | 6 years, 15 weeks, 6 days ago | ||||||||||||
| Description |
|
The dataSize doc page mentions that the parameters into the command are the namespace, keypattern, min, and max. However, there is also an "estimate" boolean value parameter for the command that is not mentioned in the docs. The dataSize command determines the total size of a range of documents, specified by its index key. The estimate parameter attempts to provide an estimated size instead, by walking the index and assuming the documents are uniformly sized (based on the average document size in the collection) instead of fetching the documents and calculating their actual size. Relevant code for the estimate parameter in MongoDB 3.4: https://github.com/mongodb/mongo/blob/v3.4/src/mongo/db/commands/dbcommands.cpp#L859-L863 Relevant code for what the parameter does in MongoDB 3.4: https://github.com/mongodb/mongo/blob/v3.4/src/mongo/db/commands/dbcommands.cpp#L935-L936 |
| Comments |
| Comment by Githook User [ 26/Oct/17 ] |
|
Author: {'email': 'kevinadi@gmail.com', 'name': 'Kevin Adistambha', 'username': 'kevinadi'}Message: |