[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:
Depends
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: SERVER-72108 Only compute params for query planning when necessary
Branch: master
https://github.com/mongodb/mongo/commit/124b252f19511f3b3fa8b50c429caa42439aa5e2

Generated at Thu Feb 08 06:20:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.