Grace Lu
03/21/2023, 9:06 PMuuid date group metrics_1, metrics_2. … metrics_xxxx
And a typical simplified query we want to run on this table is selecting a bunch of metrics aggregation for certain groups of uuids across days and then aggregate them again by group, eg:
select
group,
avg(m1),
sum(m2),
...
avg(mxxx)
from
(
select
uuid,
group,
avg(metrics_1) as m1,
sum(metrics_2) as m2,
…
avg(metrics_xxx) as mxxx
from metrics_table where group in (xxx) and date between aa and bb
group by 1, 2
) group by 1
When we did preliminary testing previously, we ran into issues of simple aggregation query on uuid takes very long to return, or query return inaccurate approximations due to high cardinality, we want to get some suggestions about whether it is a good use case with pinot, and if it is how to model this with proper cluster config and index config, thank you!
cc @Mingmin XuMayank
Grace Lu
03/22/2023, 8:58 PMMayank