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

Terms agg exclude clauses slow on high-cardinality fields #11181

Closed
markharwood opened this issue May 15, 2015 · 1 comment
Closed

Terms agg exclude clauses slow on high-cardinality fields #11181

markharwood opened this issue May 15, 2015 · 1 comment
Assignees
Labels

Comments

@markharwood
Copy link
Contributor

Even with a single exclude term, a terms aggregation can be very slow to execute on fields with high cardinality.
The culprit is the IncludeExclude.OrdinalsFilter.acceptedGlobalOrdinals method which loops over a globalTermsEnum to produce a set of accepted global ordinals. This can take several seconds and is a cost paid for every query.

The issue #11176 is related to the same use case but is a different problem, relating to the scalability of the exclude list provided.

@markharwood
Copy link
Contributor Author

Fixed as part of caf7235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant