We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ae63d4 commit 9ef94bfCopy full SHA for 9ef94bf
source/reference/operator/aggregation/lookup.txt
@@ -557,13 +557,9 @@ different ``$lookup`` operations.
557
558
- .. _uncorrelated-subqueries-performance:
559
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``.
+ - ``$lookup`` operations that contain uncorrelated subqueries
+ perform better when the inner pipeline can reference an
+ index of the foreign collection.
567
568
- MongoDB only needs to run the ``$lookup`` subquery once before
569
caching the query because there is no relationship between the
0 commit comments