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
Enable concurrency for multi terms agg #102710
Enable concurrency for multi terms agg #102710
Conversation
This commit enables concurrency for multi terms agg if all sub-terms agg target low cardinality fields.
Pinging @elastic/es-analytics-geo (Team:Analytics) |
Hi @javanna, I've created a changelog YAML for you. |
@@ -168,64 +167,52 @@ private List<BucketOrder> randomOrder() { | |||
|
|||
public void testSupportsParallelCollection() { | |||
{ | |||
AggregatorFactories.Builder builder = new AggregatorFactories.Builder(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realized that I don't need to test AggregatorFactories.Builder here, hence I simplified the test while I was at it.
return false; | ||
} | ||
}); | ||
assertFalse(builder.supportsParallelCollection(null)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I added a missing test that verifies that we still look at sub-aggs for composite agg, when all the sources support concurrency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
This commit enables concurrency for multi terms agg if all sub-terms agg target low cardinality fields.
This commit enables concurrency for multi terms agg if all sub-terms agg target low cardinality fields.