We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b76efa commit 544f1c3Copy full SHA for 544f1c3
source/reference/operator/aggregation/lookup.txt
@@ -554,13 +554,9 @@ different ``$lookup`` operations.
554
555
- .. _uncorrelated-subqueries-performance:
556
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``.
+ - ``$lookup`` operations that contain uncorrelated subqueries
+ perform better when the inner pipeline can reference an
+ index of the foreign collection.
564
565
- MongoDB only needs to run the ``$lookup`` subquery once before
566
caching the query because there is no relationship between the
0 commit comments