Details
-
Improvement
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
QO 2023-04-03
Description
$lookup wraps its $match join in an $and when there is potentially one predicate, with potentially empty predicates included. Since we re-optimize and canonicalize the pipeline for every outer document, it's best for us to produce simpler BSON if possible in $lookup.