File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
source/reference/operator/aggregation Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -554,13 +554,9 @@ different ``$lookup`` operations.
554554
555555 - .. _uncorrelated-subqueries-performance:
556556
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.
564560
565561 - MongoDB only needs to run the ``$lookup`` subquery once before
566562 caching the query because there is no relationship between the
You can’t perform that action at this time.
0 commit comments