# Performance - Very large list of buckets in an aggregation field

**URL:** <https://discuss.elastic.co/t/performance-very-large-list-of-buckets-in-an-aggregation-field/21782>\
**Category:** Elasticsearch\
**Created:** [January 22, 2015, 5:09pm UTC](https://discuss.elastic.co/t/performance-very-large-list-of-buckets-in-an-aggregation-field/21782 "2015-01-22T17:09:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElasticSearch\_Users\_](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@ElasticSearch\_Users\_](https://discuss.elastic.co/u/ElasticSearch_Users_)\
**Post date:** [January 22, 2015, 5:09pm UTC](https://discuss.elastic.co/t/performance-very-large-list-of-buckets-in-an-aggregation-field/21782/1 "2015-01-22T17:09:58Z")

</div>

Hi,

I have to run aggregation on a very large corpus and pull out facets for  
~10-12 fields. All fields except one have decent sized buckets (like, not  
more than ~1K at a maximum), however, one field may have a very large  
number of buckets. Probably in millions. Will that turn out to be a  
performance issue?

All I am interested is in the grouping of the records based on that field.

Is there any best practice on how to achieve this, or is this not a normal  
scenario?

Thanks,  
SRK

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/82c68775-f0a8-4044-bf6b-f2a975754013%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/82c68775-f0a8-4044-bf6b-f2a975754013%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:37am UTC](https://discuss.elastic.co/t/performance-very-large-list-of-buckets-in-an-aggregation-field/21782/2 "2017-07-06T00:37:12Z")

</div>


