~/talk

Continuous Aggregates A Use Case of Materialized Views

Talkat PGCon 2023 · 2023-05-30..06-02· [databases, data-engineering]
links:none on file
slides:none on file

TimescaleDB implements continuous aggregates that incrementally refresh materialized results by tracking a watermark and applying aggregation only to newly inserted rows, cutting work compared with full REFRESH MATERIALIZED VIEW. A background scheduler runs refresh policies; out‑of‑order inserts produce entries in an invalidation log so only affected time ranges re‑aggregate. A real‑time view unions materialized buckets before the watermark with raw rows after it. Hierarchical continuous aggregates (since 2.9) let minute→hour→day layers speed initial refreshes; first full populate is single‑threaded and can be slow.

AI-written summary · about

  1. 0:00Start
  2. 1:01What is TimescaleDB?
  3. 3:20PostgreSQL: setup
  4. 5:57PostgreSQL: Materialized Views
  5. 9:29TimescaleDB: Continuous Aggregates
  6. 21:27Continuous Aggregates: Limitations
  7. 22:29Continuous Aggregates: Future
  8. 25:16Questions
  9. 30:30TimescaleDB: Hierarchical Continuous Aggregates
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.