Is there a way to dynamically set the number of partitioning we set for aggregation?
for example, if i have 10 aggs i preform, each one has different distinct count. can i dynamically set the partitioning to return X amount of distinct value?
The solution I thought of is preforming 2 requests for each agg, first a cardinality request to determine how many distinct values are, then divide that value with X and make a second request where i have cardinality result/X partitioning.
Im looking for a way to avoid the cardinality request.
Im aware that my solution is not perfect as more docs can be added after i made the request, and i accept that flaw