Couple of questions:
- How big is the WASM blob that you need to ship for in-browser SQLite? Have you had any noticable issues from shipping a large payload to the browser?
- What are you using to persist the SQLite database on clients? Have you been using the Origin Private File System?
We're using IndexedDB. Here's a writeup on alternatives https://github.com/rhashimoto/wa-sqlite/issues/85 and a benchmark https://rhashimoto.github.io/wa-sqlite/demo/benchmarks.html
That writeup on different SQLite VFS's for in-browser use is helpful, thanks for linking that.
The corruption was also caught by sqlite itself - it threw a "malformed disk image" error and stopped responding to any further queries.
Also bugs around syncing some kinds of data - one bug that's already been fixed was that floats without decimal points would not get synced. https://github.com/electric-sql/electric/issues/506
In general electric's team is very responsive and fixes bugs when we bring them up.
[1] - https://github.com/vlcn-io/js/issues/31#issuecomment-1785296...