Skip to content

Commit 6c15361

Browse files
authored
DOCSP-37741 batchSize note (#7195)
* DOCSP-37741 batchSize note * Adjusts text * Adjusts text * Adjusts text
1 parent aa6d0cc commit 6c15361

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/reference/method/cursor.batchSize.txt

+12
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ Definition
2626
most :driver:`drivers </>` return results as if MongoDB returned a
2727
single batch.
2828

29+
.. note::
30+
31+
If the batch size is too large, the cursor allocates more
32+
resources than it requires, which can negatively impact
33+
query performance. If the batch size is too small, the
34+
cursor requires more network round trips to retrieve the
35+
query results, which can negatively impact query
36+
performance.
37+
38+
Adjust ``batchSize`` to a value appropriate to your
39+
database, load, and application needs.
40+
2941
The :method:`~cursor.batchSize()` method takes the
3042
following field:
3143

0 commit comments

Comments
 (0)