Potential performance improvements of high-cardinality terms aggregations
Read about general suggestion for the overall cluster performance by tuning the search speed, indexing speed and disk usage. Use important system configuration and cardinality as well as Elasticsearch refresh interval to gain better advantage of your code.
View the impact of global ordinals on aggregations and log levels. Use time-based indices, enable eager ordinal but learn why you should avoid adding a global ordinals.
"IntroductionAn Elasticsearch is used to create corresponding to unique values of a given field. For example, a terms aggregation on a field containing country name..."