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

Make pooled js scope re-use time based

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.9
    • None
    • JavaScript
    • None
    • Fully Compatible
    • Service Arch 2019-03-11
    • 0

    Description

      Current js scope reuse is based on the number of times used. I.e. a scope will be re-used 10 times, then thrown away. This is suboptimal for workloads that don't perform large scans.

      Switching to a time based reuse strategy gives the same benefits as a low reuse count (limiting memory consumption and avoiding accumulating too much debris in the scopes), while improving performance for those more targeted workloads

      Attachments

        Activity

          People

            mira.carey@mongodb.com Mira Carey
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: