Skip to content

Commit c5a3c19

Browse files
authored
DOCS-16616 lookup performance fix for v4.4 (#6082)
* DOCS-16616 lookup performance fix for v4.4 * DOCS-16616 lookup performance fix for v4.4 * DOCS-16616 aligning changes with DOCS-16614 * DOCS-16616 aligning changes with DOCS-16614
1 parent 794317d commit c5a3c19

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

source/reference/operator/aggregation/lookup.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,14 @@ different ``$lookup`` operations.
330330
- .. _equality-match-performance:
331331

332332
- ``$lookup`` operations that perform equality matches with a
333-
single join typically perform better when the source collection
334-
contains an index on the ``foreignField``.
333+
single join perform better when the foreign collection contains
334+
an index on the ``foreignField``.
335+
336+
.. important::
337+
338+
If a supporting index on the ``foreignField`` does not
339+
exist, a ``$lookup`` operation that performs an equality
340+
match with a single join will likely have poor performance.
335341

336342
* - :ref:`Uncorrelated Subqueries <lookup-uncorrelated-subquery>`
337343

0 commit comments

Comments
 (0)