Skip to content

Commit 9ef94bf

Browse files
authored
DOCSP-36128 updating lookup performance (#6139) (#6251)
* DOCSP-36128 updating lookup performance * DOCSP-36128 updating lookup performance
1 parent 1ae63d4 commit 9ef94bf

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
@@ -557,13 +557,9 @@ different ``$lookup`` operations.
557557

558558
- .. _uncorrelated-subqueries-performance:
559559

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

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

0 commit comments

Comments
 (0)