[SERVER-72108] Only compute params for query planning when necessary Created: 14/Dec/22 Updated: 29/Oct/23 Resolved: 16/Dec/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.3.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alyssa Clark | Assignee: | Alyssa Clark |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Participants: | |||||
| Linked BF Score: | 100 | ||||
| Description |
|
We don't need to unconditionally compute collection stats here since they are only needed if the query might be able to use column scan (which is only applicable when there are column store indexes present). Similarly, we don't need to unconditionally initialize the planner params here - we can reduce unnecessary work filling out the params by just checking the index catalog for any CSIs present. |
| Comments |
| Comment by Githook User [ 16/Dec/22 ] |
|
Author: {'name': 'Alyssa Wagenmaker', 'email': 'alyssa.wagenmaker@mongodb.com', 'username': 'awagenmaker'}Message: |