forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop retaining reference to intermediary aggregation results in Query…
…PhaseResultConsumer (elastic#119984) We retained a reference to the partial `MergeResult` until after the search response has been sent. This can waste a lot of memory in some cases where partial merges don't do much to reduce memory consumption. Lets `null` out all the fields that may retain heavyweight references on `reduce`. Also, creating new lists saves churn and makes it easier to reason about things for the 2 mutable lists this makes non-final and saves some copying.
- Loading branch information
1 parent
6b1112d
commit 4b59fa7
Showing
1 changed file
with
55 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters