Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-99390

Refactor Express path index eligibility checks

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The getIndexForExpressEquality() function is complex and difficult to reason about and thus is fertile ground for bugs. It could be improved by (for example) separating and naming the compound boolean checks. We might also consider re-working the loop structure to make it more explicit that we're looking for best choice and skipping over ineligible ones during each pass.

            Assignee:
            colin.stolley@mongodb.com Colin Stolley
            Reporter:
            colin.stolley@mongodb.com Colin Stolley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: