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

Use switch statement instead of ORs in isIndexOnOwnFieldTypeNode()

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We check for ~20 different values of me->matchType() in isIndexOnOwnFieldTypeNode(). This should be made a switch instead for readability and performance.

            Assignee:
            Unassigned Unassigned
            Reporter:
            lynne.wang@mongodb.com Lynne Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None