[SERVER-85321] Centralize the COLLSCAN direction hinting mechanism Created: 17/Jan/24  Updated: 29/Jan/24

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

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

Issue Links:
Related
related to SERVER-79233 Ensure query settings $natural hints ... Closed
Assigned Teams:
Query Execution
Participants:

 Description   

Currently there are three means of forcing the desired direction scattered throughout the codebase:

  • $natural cursor hints - which uses the request object itself to determine the scan direction.
  • $natural query settings hints - which populate PlannerParameters::collscanDirection.
  • PlannerParameters::TraversalPreference - an internal hint used by timeseries to avoid blocking sorts.

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