[SERVER-28045] Add an {ns, lastmod} index hint to the query created by ConfigDiffTracker::configDiffQuery() Created: 17/Feb/17  Updated: 07/Apr/23  Resolved: 04/Apr/23

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

Type: Improvement Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: [DO NOT USE] Backlog - Sharding EMEA
Resolution: Won't Do Votes: 0
Labels: AdiZ, PM-256
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-28044 Improve / Refactor ConfigDiffTracker ... Closed
Assigned Teams:
Sharding EMEA
Participants:

 Description   

We depend on the

{ns, lastmod}

index on config.chunks being used in the chunk diff query to config.chunks so that yielding does not cause us to miss chunk documents and never see them. We should include a hint on the query to assure that the query planner uses that index for the request: it's very unlikely that the planner will choose not to use that index, but the planner can technically choose to use something else.


Generated at Thu Feb 08 04:16:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.