Skip to content

Tests for runtime field queries with fbf aggs (backport of #71503)#71585

Merged
nik9000 merged 1 commit intoelastic:7.xfrom
nik9000:terms_agg_de_optimize_runtime_7_x
Apr 12, 2021
Merged

Tests for runtime field queries with fbf aggs (backport of #71503)#71585
nik9000 merged 1 commit intoelastic:7.xfrom
nik9000:terms_agg_de_optimize_runtime_7_x

Conversation

@nik9000
Copy link
Copy Markdown
Member

@nik9000 nik9000 commented Apr 12, 2021

This adds a few tests for runtime field queries applied to
"filter-by-filter" style aggregations. We expect to still be able to
use filter-by-filter aggregations to speed up collection when the top
level query is a runtime field. You'd think that filter-by-filter would
be slow when the top level query is slow, like it is with runtime
fields, but we only run filter-by-filter when we can translate each
aggregation bucket into a quick query. So long as the results of those
queries don't "overlap" we shouldn't end up running the slower top level
query more times than we would during regular collection.

This also adds some javadoc to that effect to the two places where we
chose between filter-by-filter and a "native" aggregation
implementation.

This adds a few tests for runtime field queries applied to
"filter-by-filter" style aggregations. We expect to still be able to
use filter-by-filter aggregations to speed up collection when the top
level query is a runtime field. You'd think that filter-by-filter would
be slow when the top level query is slow, like it is with runtime
fields, but we only run filter-by-filter when we can translate each
aggregation bucket into a quick query. So long as the results of those
queries don't "overlap" we shouldn't end up running the slower top level
query more times than we would during regular collection.

This also adds some javadoc to that effect to the two places where we
chose between filter-by-filter and a "native" aggregation
implementation.
@nik9000
Copy link
Copy Markdown
Member Author

nik9000 commented Apr 12, 2021

run elasticsearch-ci/docs

@nik9000 nik9000 merged commit ca8379b into elastic:7.x Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant