[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: |
|
||||||||||||||||
| 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. |