~/talk

Tutorial

Talkat PGConf Silicon Valley 2015 · 2015-11-17..11-18· [databases]
slides:none on file

Claims that PostgreSQL can replace multi-stage stacks by delivering real-time dashboards using materialized views, triggers and the HyperLogLog extension on the GitHub Archive dataset (~600k events/day ≈ 1.6GB/day, month preload ~19–22GB). Naive refreshes and per-row triggers make queries take minutes and drop ingest from ~2000 rows/s/core to ~380; switching to a queue of deltas with a probabilistic refresh materialized view concurrently style flush restores throughput to ~1,700–1,900 rows/s and yields tiny materialized tables (3MB) with HLL ≈1.8% error — effective but tradeoffs remain.

AI-written summary · about

  1. 0:00Start
  2. 0:01PostgreSQL
  3. 0:20Tutorial Logistics
  4. 2:39Exercise file names
  5. 6:28Use-case: Analytical dashboards
  6. 8:05Different aggregates
  7. 9:14Real-time Analytics
  8. 11:30Exercise: Github Events Data
  9. 13:31Analyzing raw data
  10. 14:09Querying JSONB
  11. 15:22Exercise: Load Github Events data
  12. 19:15Setting up materialized views
  13. 22:58When to use materialized views
  14. 24:25Caching aggregates
  15. 25:21Exercise: Cached Aggregates
  16. 26:33Exercise: Updated Cached Aggregates
  17. 28:53Exercise: Set Up Trigger
  18. 29:32Trigger Exercise
  19. 32:54Problems with the simple approach
  20. 36:09Caching older aggregates
  21. 37:28Aggregate Change Queue
  22. 42:42Exercise: Change Queue
  23. 44:25Exercise: Flush Queue Table 1/5
  24. 52:46Querying the views
  25. 53:24Exercise: Create the View
  26. 53:44Loading Data
  27. 56:49Cascading 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.