Skip to content

Commit

Permalink
DOCSP-36128 updating lookup performance (#6139) (#6250)
Browse files Browse the repository at this point in the history
* DOCSP-36128 updating lookup performance

* DOCSP-36128 updating lookup performance
  • Loading branch information
ltran-mdb2 authored Feb 6, 2024
1 parent 7f4532c commit 0ff88e2
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions source/reference/operator/aggregation/lookup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -554,13 +554,9 @@ different ``$lookup`` operations.

- .. _uncorrelated-subqueries-performance:

- An index on the foreign collection cannot support uncorrelated
subqueries.

- To improve performance for uncorrelated subqueries, use generic
indexing strategies and query optimization techniques. For
example, add appropriate indexes to support aggregation stages
before ``$lookup``.
- ``$lookup`` operations that contain uncorrelated subqueries
perform better when the inner pipeline can reference an
index of the foreign collection.

- MongoDB only needs to run the ``$lookup`` subquery once before
caching the query because there is no relationship between the
Expand Down

0 comments on commit 0ff88e2

Please sign in to comment.