[SERVER-27314] Only validate "from" pipeline structure once for $lookup Created: 07/Dec/16  Updated: 27/Jun/19  Resolved: 27/Jun/19

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: James Wahlin Assignee: Jacob Evans
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
Depends
Related
is related to SERVER-22497 Allow from field of $lookup and $grap... Backlog
Participants:
Linked BF Score: 0

 Description   

For each local document matched in $lookup we will create a pipeline representing the query against the "from" collection. This results in repeated validation of an identical pipeline structure. We should look to validate this structure once per $lookup invocation rather than once per "from" pipeline.

This shows up as a $lookup hotspot under VTune in the "uassertNoDisallowedClauses" method.


Generated at Thu Feb 08 04:14:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.