[Feature]: chain refresh policies
Author: d-sooterCreated Aug 27, 2023Updated Sep 27, 2026
LabelsContinuous AggregateBackground Workerfeature-request
What problem does the new feature solve?
Continuous aggregates are awesome, and stacking them on top of each other in a hierarchical way is awesome too. There can be funny situations that happen when refreshing the aggregates when one cagg refreshes before the other ones.
This is my setup
cagg (2 min) -> cagg(10 min) -> cagg(1 hour)
Since they are all dependant on the two min cagg it makes sense to refresh them in a way dependant on the lowest cagg. If not in the 10 min refresh runs before the 2 min refresh has run it will no longer pick up the values.
What does the feature do?
The ideas would be to chain the refresh policies so that the dependant caggs are refreshed after the base cagg has been refreshed.
Implementation challenges
No response
Source: timescale/timescaledb