~/talk

Custom data structures in managed Postgres using WASM

Talkat Øredev 2024 · 2024-11-06..11-08· [databases, webassembly]
links:none on file
slides:none on file

Claim: compile the Roaring bitmap C library to WASM and run it inside PLV8 to get native-extension–like custom types on managed Postgres (AWS RDS GCP Cloud SQL Azure Database) and avoid moving data to another DB. Concrete tools: Emscripten/mscripten → WASM, pv8/PLV8, bytea storage. Result: handled ~100x data growth for Workday Peakon Employee Voice in production; bitmap queries run hundreds of times faster than GIN (WASM ~3× slower than C but still fast enough).

AI-written summary · about

  1. 0:00Introduction
  2. 1:50Managed Postgres extensions
  3. 5:22Running untrusted code safely
  4. 8:18Embedding V8 in Postgres
  5. 12:54Custom data types in Postgres
  6. 19:15Replicating with pv8 and WASM
  7. 26:06Performance benefits of WASM
  8. 33:58Maintenance and consistency
  9. 35:44Summary
~/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.