Skip to content

Commit 544f1c3

Browse files
authored
DOCSP-36128 updating lookup performance (#6139) (#6252)
* DOCSP-36128 updating lookup performance * DOCSP-36128 updating lookup performance
1 parent 7b76efa commit 544f1c3

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

source/reference/operator/aggregation/lookup.txt

+3-7
Original file line numberDiff line numberDiff line change
@@ -554,13 +554,9 @@ different ``$lookup`` operations.
554554

555555
- .. _uncorrelated-subqueries-performance:
556556

557-
- An index on the foreign collection cannot support uncorrelated
558-
subqueries.
559-
560-
- To improve performance for uncorrelated subqueries, use generic
561-
indexing strategies and query optimization techniques. For
562-
example, add appropriate indexes to support aggregation stages
563-
before ``$lookup``.
557+
- ``$lookup`` operations that contain uncorrelated subqueries
558+
perform better when the inner pipeline can reference an
559+
index of the foreign collection.
564560

565561
- MongoDB only needs to run the ``$lookup`` subquery once before
566562
caching the query because there is no relationship between the

0 commit comments

Comments
 (0)