[SERVER-55668] Allow rewrite to push exclusion meta projections past $unpackBucket Created: 31/Mar/21 Updated: 29/Oct/23 Resolved: 20/Apr/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.0.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Hana Pearlman | Assignee: | Hana Pearlman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Query Optimization 2021-04-05, Query Optimization 2021-04-19, Query Optimization 2021-05-03 |
| Participants: |
| Description |
|
If we have an exclusion $project only on meta after an $unpackBucket, we can move the $project before $unpackBucket. For example: {$unpackBucket: {exclude: [], metaField: "myMeta"}}, We can do something similar when the exclusion $project is partially on meta. For example, after just the suggested optimization: {$unpackBucket: {exclude: [], metaField: "myMeta"}}, } |
| Comments |
| Comment by Githook User [ 20/Apr/21 ] |
|
Author: {'name': 'Hana Pearlman', 'email': 'hana.pearlman@mongodb.com', 'username': 'HanaPearlman'}Message: |