Home / Companies / Tiger Data / Blog / Post Details
Content Deep Dive

Continuous Aggregate Refresh, Demystified: Invalidation, Lookback, and Late-Arriving Data

Blog post from Tiger Data

Post Details
Company
Date Published
Author
Damaso Sanoja
Word Count
2,570
Company Posts That Month
8
Language
English
Hacker News Points
-
Post removed?
No
Summary

Time-series dashboard totals can change without errors in raw data when late-arriving or corrected records fall outside the refresh behavior of precomputed aggregates. Four common approaches handle this differently: scheduled full recomputes eventually capture all changes but repeatedly rebuild everything, insert-triggered incremental views are efficient for new data but do not automatically reconcile history, streaming dataflow engines process late events and updates continuously at the cost of operating an additional system, and TimescaleDB continuous aggregates track invalidations and selectively recompute affected buckets within a configured time window. In TimescaleDB, the critical policy settings are start_offset, which determines how far back refreshes revisit potentially late or changed data, and end_offset, which excludes the newest buckets from materialization while they are still receiving data; together with the schedule interval, they define both correctness coverage and publication delay. Late writes or updates outside the start_offset window can leave aggregates permanently stale, while real-time aggregation only exposes newer, unmaterialized data and does not repair old buckets. Effective operation therefore requires sizing refresh windows according to observed data lateness, aligning raw-data retention with those windows, accounting for additional delay in hierarchical aggregates, and monitoring refresh-job success and timing.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 9 4,432 1,050 222 -31%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.