~/talk

How We Built SQL Rollups on Streaming Data

Talkat Scale By the Bay 2021 · 2021-10-28..10-29· [data-engineering, databases]
links:none on file
name:Karen Li
github:karenjli
slides:none on file

Rockset implements SQL rollups on Kafka and Kinesis by running a decomposed SQL rollup query at ingest and finalizing aggregates at read time, cutting storage and speeding queries. An added aggregator service runs the ingest query, emitting documents keyed by a 128‑bit hash of grouping dimensions as _id so leaves can do read‑modify‑write updates. Partial aggregate states are stored (sum/count for avg), the search index omits nonfinal partials, and exactly-once per-shard sequence enforcement prevents double counting while handling out‑of‑order arrivals.

AI-written summary · about

  1. 0:00Introduction to SQL rollups
  2. 2:26Why build SQL rollups
  3. 6:37Design principles for rollups
  4. 9:46Decomposing rollup SQL queries
  5. 12:36Executing SQL at ingest time
  6. 15:27Handling out-of-order arrivals
  7. 18:19Exactly-once write semantics
  8. 20:25Implementation summary
  9. 21:48Q&A session
~/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.