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

Reduce memory consumption of 2nd-phase validate

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • RSS Sydney
    • Fully Compatible
    • GregsList - 2024-09-03, PopcornChicken - 2024-09-17, MorningKaraoke 2024-10-01, BananaDuck - 2024-10-15, CookieFloss - 29/10/24, Party@Gregs - 2024-11-12, TeamTummy - 2024-11-26

      Proposal:

       - Where we eagerly calculate the key:value for missing/extra, delay calculation until we know we're going to report that.

       - Only store the minimal amount of information for doing the above.

       

      This is kindof a time-space tradeoff, because we're swapping one sequential table read for a bunch of lookups, but thats probably a good tradeoff given that we know we run out of memory, and the number of things we report is very small (compared to the total size of the collection)

            Assignee:
            nic.hollingum@mongodb.com Nic Hollingum
            Reporter:
            nic.hollingum@mongodb.com Nic Hollingum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: