Oddbean new post about | logout
 I forked #pglite, learned about the Postgres wire protocol, fixed how it serializes query parameters ( https://github.com/electric-sql/pglite/pull/306 ), deployed my branch to npm and got pglite working in #Ditto.

https://gitlab.com/soapbox-pub/ditto/-/merge_requests/483 
 Is pglite wasm faster than the browsers native DB (SQL lite?) ? 
 Here are benchmarks: https://pglite.dev/benchmarks

The Nostr Postgres schema is inherently faster than the SQLite one because: GIN index on jsonb allows fast tag queries, and upsert syntax improves replaceable event inserts. This is ignoring the fact it runs in a separate process and uses multiple cores.

So even if the baseline wasn't better, I think it would still be better. But in many cases the baseline is better.

Also I don't need to run it in production, just need to simplify my codebase by removing SQLite support. With pglite I can do that without sacrificing anything. Good developer experience all around. 
 Super interesting  
 21:39 JG1BOK on JA/NN-076(Kirigamine (Kurumayama), 1925m, 10 pts) 21.062 cw [APRS2SOTA] [APRS2SOTA]