Skip to content

Commit b722252

Browse files
Jibolatimgraham
authored andcommitted
Improve QuerySet performance by removing limit on server-side chunking (mongodb#347)
1 parent 79e78f6 commit b722252

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

django_mongodb_backend/compiler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ def execute_sql(
260260
else:
261261
return self._make_result(obj, self.columns)
262262
# result_type is MULTI
263-
cursor.batch_size(chunk_size)
264263
result = self.cursor_iter(cursor, chunk_size, self.columns)
265264
if not chunked_fetch:
266265
# If using non-chunked reads, read data into memory.

docs/source/releases/5.1.x.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Django MongoDB Backend 5.1.x
1111
the ``base_field`` uses a database converter.
1212
- Fixed ``RecursionError`` when using ``Trunc`` database functions on non-MongoDB
1313
databases.
14+
- Improved ``QuerySet`` performance by removing low limit on server-side chunking.
1415

1516
5.1.0 beta 3
1617
============

0 commit comments

Comments
 (0)