SERVER-139361Backlog

Charge array filter merge cache memory to the operation memory tracker

h2. Problem UpdateArrayNode keeps every merged update subtree in {{_mergedChildrenCache}} for the lifetime of the update tree. In a {{multi: true}} update the cache persists across documents. SERVER-138477 bounds the work per document and clears all caches at 1000 entries, but the clear threshold counts entries, not bytes. An entry is a deep copy of a merged tree, so its size grows with the number of array filters in the merge chain, and nothing caps that number. Memory held between documents i

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.