~/talk

No, Maybe and Close Enough! Probabilistic Data Structures with Python and Redis

Talkat PyConline AU 2021 · 2021-09-10..09-12· [python, databases]
slides:none on file

Shows exact tradeoffs and runnable numbers: uses Python libraries and Redis data types to compare a set vs HyperLogLog and a Bloom Filter; adds 100,000 IDs and reports HyperLogLog ≈99,500 while using ~12 KB vs the much larger set, and configures a Bloom Filter for 200,000 items (adding 100,000) via pyprobables and Redis BF RESERVE, demonstrating false positives (no vs maybe), memory savings, hashing details and how to tune accuracy vs size.

AI-written summary · about

  1. 0:00Intro
  2. 0:52Counting Things...
  3. 4:16Problems at Scale
  4. 5:35Use a Database: How Many Sheep?
  5. 8:41Tradeoff..
  6. 10:08Hyperloglog: Approximating Distinct Items
  7. 12:19Hyperloglog: Algorithm
  8. 14:22Redis: Approximately How Many Sheep Have I Seen?
  9. 15:55Bloom Filter: Set Membership (No, Maybe)
  10. 23:20When to use Probabilistic Data Structures
~/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.