Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add memory check for term agg #1957

Merged
merged 1 commit into from
Mar 24, 2023
Merged

add memory check for term agg #1957

merged 1 commit into from
Mar 24, 2023

Conversation

PSeitz
Copy link
Contributor

@PSeitz PSeitz commented Mar 23, 2023

No description provided.

@PSeitz PSeitz requested a review from fulmicoton March 23, 2023 11:00
@@ -8,7 +8,7 @@ use super::collector::DEFAULT_MEMORY_LIMIT;
use super::{AggregationError, DEFAULT_BUCKET_LIMIT};
use crate::TantivyError;

/// An estimate for memory consumption
/// An estimate for memory consumption. Non recursive
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does non recursive mean here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That it does not cover sub elements, e.g.

Vec<Box<dyn SubCollector>>

  1. We would need to add trait bounds on the sub elements
  2. It would be much slower to traverse whole trees

@PSeitz PSeitz merged commit d6a9538 into main Mar 24, 2023
@PSeitz PSeitz deleted the agg_memory_limit branch March 24, 2023 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants