File tree 1 file changed +3
-7
lines changed
source/reference/operator/aggregation
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -557,13 +557,9 @@ different ``$lookup`` operations.
557
557
558
558
- .. _uncorrelated-subqueries-performance:
559
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``.
560
+ - ``$lookup`` operations that contain uncorrelated subqueries
561
+ perform better when the inner pipeline can reference an
562
+ index of the foreign collection.
567
563
568
564
- MongoDB only needs to run the ``$lookup`` subquery once before
569
565
caching the query because there is no relationship between the
You can’t perform that action at this time.
0 commit comments