[SERVER-67770] Investigate improved rewrites on 'ns' field Created: 04/Jul/22 Updated: 05/Dec/22 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Bernard Gorman | Assignee: | Backlog - Query Execution |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Query Execution
|
| Participants: |
| Description |
|
Currently, matchRewriteNs generates a very verbose rewrite on the ns field, particularly for regex expressions, since we perform the rewrite separately for each operation type. It may be possible to simplify the rewrite by factoring out common parts of the rewrite, perhaps by generating the entire thing as an agg expression. |