[SERVER-82350] Consider moving MatchExpressions instead of always cloning them Created: 20/Oct/23 Updated: 01/Nov/23 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Alexander Ignatyev | Assignee: | Backlog - Query Optimization |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Query Optimization
|
||||||||
| Participants: | |||||||||
| Description |
|
The Boolean simplifier always clones MatchExpressions when restoring expressions from their bitset representation. Given that once the simplified MatchExpression is materialized we drop the original one in favour of the simplified one, so we can avoid cloning/copying data, and moved it instead. |