~/talk

Efficient Time Series with PostgreSQL

Talkat NDC Oslo 2017 · 2017-06-14..06-16· [databases]
links:none on file
slides:none on file

Argues PostgreSQL handles high‑volume time series by using a normalized schema (metrics table + values table), JSONB + GIN for tags, and a composite B‑tree index (metric_id, timestamp) to avoid expensive bitmap scans; ingestion uses a triggered roll‑up with INSERT ... ON CONFLICT DO UPDATE to maintain pre‑aggregated buckets (e.g., 10× reduction) so range queries stay under ~100 ms even as raw rows reach tens or hundreds of millions; recommends partitioning for fast retention and further scaling.

AI-written summary · about

  1. 0:00Introduction
  2. 3:20Use Case Monitoring
  3. 4:53Common Components
  4. 8:24Prometheus
  5. 13:55Time Series
  6. 19:13Mapping Time Series
  7. 25:41Indexing
  8. 26:31Btrees
  9. 28:59Index
  10. 30:31Data Volume
  11. 31:36Adding Indexes
  12. 32:41Normalisation
  13. 37:05Index Scan
  14. 40:09Increasing Data Volume
  15. 48:51Clearing a billion rows
  16. 50:32Partitioning
  17. 51:39Splitting by Metric
~/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.