Search code examples
databaseaggregateaggregationclickhouse

Does Clickhouse provide continuous (automated) aggregation functions/tables?


I read that InfluxDB offers continuous aggregation features. Does Clickhouse provide something along those lines?

For example, I have certain real-time measurements arrive every couple seconds, sometimes multiple per second, but I am interested in frequently polling down-sampled measures, for example, summary stats of measurements per hour. Ideally, those aggregates should be calculated continuously server-side. I want to configure an aggregation that continuously updates my queries and generates views upon the arrival of new data or at specified intervals, such as every minute.

Is that possible?


Solution

  • Clickhouse materialized views you are looking for

    SummingMergeTree & AggregatingMergeTree

    they are able to downsample continuously the same time data is coming

    Postponed downsampling