Content Deep Dive
How We Made Real-Time Data Aggregation in Postgres Faster by 50,000%
Blog post from Tiger Data
Post Details
Company
Date Published
Author
FabrÃzio de Royes Mello
Word Count
3,431
Language
English
Hacker News Points
20
Source URL
Summary
In this blog post, the authors discuss how they made real-time data aggregation in Postgres faster by 50,000% using continuous aggregates (CAggs), a core feature of TimescaleDB. CAggs are self-updating materialized views optimized for aggregation queries over time-series data. The authors introduced enhancements to significantly accelerate real-time data aggregation in TimescaleDB 2.13.0, resulting in a planning time reduction of over 50,000% and a substantial decrease in query execution times. They achieved this by constifying the watermark function call, which allowed plan time chunk exclusion and scans only for the chunks that are actually accessed by the query.