[SERVER-80558] Compute QueryShapeHash only in cases when QuerySettings are set for a given collection Created: 30/Aug/23  Updated: 06/Nov/23  Resolved: 06/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.0-rc0

Type: Task Priority: Major - P3
Reporter: Denis Grebennicov Assignee: Catalin Sumanaru
Resolution: Fixed Votes: 0
Labels: M3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Sprint: QE 2023-10-16, QE 2023-10-30, QE 2023-11-13
Participants:

 Description   

In order to perform QuerySettings lookup, QueryShapeHash is required.

In situation when $queryStats is off, QueryShapeHash has to be computed.

Currently we avoid computing QueryShapeHash in situation, when no QuerySettings are set for the given tenant. 

As part of this ticket we would need to modify the QuerySettingsManager to store QuerySettings in such a way, that we could avoid computing QueryShapeHash in situations when no QuerySettings are set for the given collection. This way we would reduce the performance impact of QuerySettings lookup even further



 Comments   
Comment by Githook User [ 03/Nov/23 ]

Author:

{'name': 'csum112', 'email': 'catalin.sumanaru@mongodb.com', 'username': ''}

Message: SERVER-80558 Compute QueryShapeHash only in cases when QuerySettings are set for a given collection
Branch: master
https://github.com/mongodb/mongo/commit/e408415aeed5ee201c4be43af09cf6252f22f554

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