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.”
An exhibit, not an article
Seven layers, each with something to touch. Start anywhere - the path remembers where you are.
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.
- •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
“A well-architected system makes the right thing easier, and the wrong thing harder.”