-
Notifications
You must be signed in to change notification settings - Fork 1.7k
DOCSP-47795 change batchsize descriptions #6292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 8 commits
8deeac6
be213a1
33ca30a
d5b3d92
cf8c2a4
bc536e2
035d691
faf17d1
63c684f
e660f33
caa5e22
0617073
e78b353
26fd631
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,11 +72,15 @@ The command accepts the following fields: | |
|
||
* - ``batchSize`` | ||
- positive integer | ||
- Optional. The number of documents to return in the batch. | ||
|
||
If ``batchSize`` is not set, ``getMore`` returns up to 16 | ||
mebibytes of data. If ``batchSize`` is set, ``getMore`` returns | ||
the smaller of 16 mebibytes of data or ``batchSize`` documents. | ||
- Optional. Specifies the maximum number of documents within each | ||
batch returned in a query result. | ||
|
||
If ``batchSize`` is not set, ``getMore`` returns up to ``101`` documents | ||
in the first batch and up to 16 mebibytes (MiB) of data in all | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When a user issues a query (either a All this to say that the text here about "101 results in the initial batch of a getmore" is not correct/relevant |
||
subsequent batches. If ``batchSize`` is set, ``getMore`` returns | ||
the smaller of 16 MiB of data or ``batchSize`` documents. If you set | ||
``batchSize`` to a limit that results in batches larger than 16 MiB, this | ||
option has no effect and ``getMore`` uses the default batch size. | ||
|
||
* - ``maxTimeMS`` | ||
- non-negative integer | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 16MiB (Eng should confirm if MB or MiB, I can't recall) applies to all batches. In other words, by default (assuming more than 1 batch):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thanks!