Skip to main content
Deep Dive Exhibit · ~6 min

WebAssembly in Salesforce LWC: 500K Record Engine & Net-Zero DB

When the platform caps storage, heap, and CPU, stop fighting the caps - change where the data lives and where the work runs.

01 · Orientation

An exhibit, not an article

Seven layers, each with something to touch. Start anywhere - the path remembers where you are.

You are here: Orientation

Read the exhibit contract, then pick a layer.

You are about to fit half a million rows through limits designed to stop you.

This exhibit traces independent systems research: a compressed catalog snapshot streams straight to the browser, a Wasm-assisted decoder expands it beside the garbage collector, an in-memory query engine answers in milliseconds, and edits persist as kilobyte deltas with no database anywhere.

All fixtures are synthetic and self-generated. What transfers to real work is the pattern: compress, stream past the server, decode beside the heap, index in memory, and merge deltas at render.

How to use this exhibit:
  • Inspect each stage of the ingestion-to-grid pipeline
  • Step one snapshot from frozen bytes to searchable rows
  • Decide what belongs on the server versus in the tab
  • Break the pipeline at its thinnest points
raw catalog~120 MB row JSONcolumnar + gzipsnapshot~3 MB · 97% smallersigned streamin memory · indexedmatch · msdelta ~12 KBedits · no database
Shrink to move, expand to think
1 / 7
“A well-architected system makes the right thing easier, and the wrong thing harder.”
— Kuldeep Singh