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

Skip updating dataSize increase in updates if they don't modify the number

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • v7.0
    • Execution Team 2023-05-01
    • 122

      When performing updates we always update the dataSize metric with the difference in size of the new and old entries. This performs some atomic arithmetic and performs a heap allocation for rollback handling to revert the arithmetic performed.

      If the update doesn't modify the size, the metrics will be incremented/decremented by 0 so all of this is unnecessary.

            Assignee:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Reporter:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: