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 @@ -554,13 +554,9 @@ different ``$lookup`` operations.
554
554
555
555
- .. _uncorrelated-subqueries-performance:
556
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``.
557
+ - ``$lookup`` operations that contain uncorrelated subqueries
558
+ perform better when the inner pipeline can reference an
559
+ index of the foreign collection.
564
560
565
561
- MongoDB only needs to run the ``$lookup`` subquery once before
566
562
caching the query because there is no relationship between the
You can’t perform that action at this time.
0 commit comments