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

Do not generate the same logical ANDs every time the masks are used

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Execution
    • QE 2024-03-04, QE 2024-03-18, QE 2024-04-01, QE 2024-04-15, QE 2024-04-29, QE 2024-05-13, QE 2024-05-27

      Whenever we call generateMaskArg we create a sequence of logicalAnds. If we call the function many times we will get the same sequence which the VM will compute multiple times. Instead we can push at the top of the stack a new variable every time with the generated expression and use only the last variable every time we need to use the masks.

            Assignee:
            foteini.alvanaki@mongodb.com Foteini Alvanaki
            Reporter:
            foteini.alvanaki@mongodb.com Foteini Alvanaki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: