Comment Comment by sohooo You could take a look at Postgres + TimescaleDB extension, which offers a nice time_bucket() function on its hypertables[1]. You can also materialize using continuous aggregates („self updating“ materialized views).1: https://docs.timescale.com/api/latest/hyperfunctions/time_bu... parent sohooo 3 years ago
1: https://docs.timescale.com/api/latest/hyperfunctions/time_bu...