We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa6d0cc commit 6c15361Copy full SHA for 6c15361
source/reference/method/cursor.batchSize.txt
@@ -26,6 +26,18 @@ Definition
26
most :driver:`drivers </>` return results as if MongoDB returned a
27
single batch.
28
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
41
The :method:`~cursor.batchSize()` method takes the
42
following field:
43
0 commit comments