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 @@ -488,13 +488,9 @@ different ``$lookup`` operations.
488
488
489
489
- .. _uncorrelated-subqueries-performance:
490
490
491
- - An index on the foreign collection cannot support uncorrelated
492
- subqueries.
493
-
494
- - To improve performance for uncorrelated subqueries, use generic
495
- indexing strategies and query optimization techniques. For
496
- example, add appropriate indexes to support aggregation stages
497
- before ``$lookup``.
491
+ - ``$lookup`` operations that contain uncorrelated subqueries
492
+ perform better when the inner pipeline can reference an
493
+ index of the foreign collection.
498
494
499
495
- MongoDB only needs to run the ``$lookup`` subquery once before
500
496
caching the query because there is no relationship between the
You can’t perform that action at this time.
0 commit comments