~/talk

Designing the Right Schema to Power Heap

Talkat PGConf Silicon Valley 2016 · 2016-11-14..11-16· [databases]
links:none on file
slides:none on file

Heap installs a snippet that captures every click and UI event so analyses are retroactive; that forces redesigns of the schema from normalized tables to per-user JSON arrays to a denormalized events table with partial indexes per event definition and later extracting ~45 common columns. The dataset runs hundreds of terabytes, earlier array approach hits MVCC bloat and Postgres 1GB field limits, the partial‑index design scales customers from ~5M to supports 30M sessions/month, but costs CPU to maintain ~1,500–2,000 event indexes.

AI-written summary · about

  1. 0:00Introduction
  2. 5:42Analytics is an iterative process
  3. 13:39Observations
  4. 16:04Normal Form
  5. 17:12Pros
  6. 19:00Cons
  7. 20:20User Partition
  8. 20:52User Analysis
  9. 23:59User Analysis Pros
  10. 28:12Hacks
  11. 30:49Ideal Cases
  12. 32:05Bloat
  13. 33:19Problems
  14. 34:25Bloating
  15. 36:13Partial Index
  16. 39:19Funnel Events
  17. 40:03Performance
  18. 41:20Limitations
  19. 46:29CPU Savings
  20. 47:42Outleave
  21. 49:23Partitioning
  22. 51:01PostgreSQL Wishlist
~/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.