[SERVER-86205] Avoid constructing CanonicalQuery twice on mongos Created: 05/Feb/24  Updated: 06/Feb/24

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Ben Shteinfeld Assignee: Backlog - Query Optimization
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-76703 Rework targetDelete() to use a single... Closed
Assigned Teams:
Query Optimization
Participants:

 Description   

Running a find on a sharded cluster requests in parsing the same BSON and constructing the same CanonicalQuery twice.

  1. ClusterFindCmdBase::run()
  2. getShardIdsForQuery()

We should avoid this duplicate work.


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