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

Code clean-up in initCQ for CanonicalQuery creation

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Optimization
    • Fully Compatible

      There are two cases in initCQ where there are checks which could be moved into earlier if statements.

      Specifically, the tests for _proj and _sortPattern.

      This may simplify the code slightly as well as speed up the execution of this method.

            Assignee:
            matt.olma@mongodb.com Matt Olma
            Reporter:
            matt.olma@mongodb.com Matt Olma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: