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

Profile whether the memory usage check in the $percentile accumulator is a problem

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Integration

      Currently, the check is done on each input, which isn't really necessary as all our memory usage is a "best effort" estimation and the limits are usually in terms of MB while the changes in usage are likely to be in bytes.

      If asking for memory usage shows up in profiles, consider:

      1. doing it less frequently
      2. reporting the memory stats from the "incorporate" calls (and do whatever optimizations possible on the side of the algorithm implementation)

            Assignee:
            backlog-query-integration [DO NOT USE] Backlog - Query Integration
            Reporter:
            irina.yatsenko@mongodb.com Irina Yatsenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: