Skip to content

Commit 078e350

Browse files
committed
edits
1 parent 3f304a6 commit 078e350

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

django_mongodb_backend/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def _get_reroot_replacements(expression):
187187
extra_conditions.append(
188188
extra.replace_expressions(replacements).as_mql(compiler, connection)
189189
)
190-
# pushed_filter_expression is a filter expression from the outer WHERE
190+
# pushed_filter_expression is a Where expression from the outer WHERE
191191
# clause that involves fields from the joined (right-hand) table and
192192
# possibly the outer (left-hand) table. If it can be safely evaluated
193193
# within the $lookup pipeline (e.g., field comparisons like

docs/source/releases/5.2.x.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@ Bug fixes
3232
databases.
3333
- :meth:`QuerySet.explain() <django.db.models.query.QuerySet.explain>` now
3434
:ref:`returns a string that can be parsed as JSON <queryset-explain>`.
35+
36+
Performance improvements
37+
------------------------
38+
3539
- Improved ``QuerySet`` performance by removing low limit on server-side chunking.
40+
- Improved ``QuerySet`` join (``$lookup``) performance by pushing some simple
41+
conditions from the ``WHERE`` (``$match``) clause to the ``$lookup`` stage.
3642

3743
5.2.0 beta 1
3844
============

0 commit comments

Comments
 (0)