You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Incremental refresh for refresh_continuous_aggregate()
refresh_continuous_aggregate() can now refresh incrementally in batches,
matching the behavior the continuous aggregate policy already supports.
Batching is opt-in for refresh_continuous_aggregate().
Options available for incremental refresh with policies can be set for
manual refresh via JSONB options:
- `buckets_per_batch` (default 0 = non-incremental)
- `max_batches_per_execution` (default 0 = no limit)
- `refresh_newest_first`
Usage:
Without options, it still behaves as previously:
CALL refresh_continuous_aggregate('cagg', t1, t2);
Incremental manual refresh requires `buckets_per_batch` to be set
larger than 0:
CALL refresh_continuous_aggregate(
'cagg', t1, t2,
options => '{"buckets_per_batch": 10}'::jsonb);
Co-authored-by: Keyur Panchal <keyur@timescale.com>
0 commit comments