~/talk

Counting things at the speed of light with roaring bitmaps

links:none on file
slides:none on file

Counts faceting for a 100 million row table runs using pg_roaringbitmap bitmaps and PostgreSQL SQL, producing a 200 MB facets table of posting lists (some ~12 MB each) and answering facet intersections in about 80 ms after TOAST/materialization tuning. Implementation uses RB_BUILD_AGGREGATE, RB_AND_CARDINALITY, chunking by ~20 bits (~1M IDs per chunk) and a Delta table + periodic MERGE for updates; packaged as the pgfaceting extension on GitHub.

AI-written summary · about

  1. 0:00Introduction to fast faceting
  2. 3:01Problem with naive faceting
  3. 6:31Speed of light memory access
  4. 9:49Bitmaps and inverted indexes
  5. 13:24Roaring bitmaps explained
  6. 18:24Postgres roaring bitmap extension
  7. 23:08Building faceting with roaring bitmaps
  8. 27:29TOAST performance issues
  9. 32:32Optimizing TOAST and updates
  10. 35:04Chunking for performance
  11. 37:38Delta tables for updates
  12. 38:46PG faceting extension demo
  13. 41:57Other uses for roaring bitmaps
  14. 43:23Graph algorithms with roaring bitmaps
  15. 44:27Q&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.