@raphael@mastodon.communick.com
Post #3128402
2026-03-17 19:32 UTC
Then I got to pglite. Yes, I can get *actual* relational database. Yes, getting it to work took me "only" half a day on a web page using indexeddb, but there is a slight problem: the performance is *abysmal* on indexedb. I started importing the documents that I had on pouchdb (4 weeks of daily driving the extension got me ~180k documents) which pouchdb exported in less than 20 seconds. But to import them to pglite on idb: 55ms for **each** document at the beginning, 120ms after 10k, 160ms on 20k
Replies (1)
-
@raphael@mastodon.communick.com 2026-03-17 19:38
Yeah, maybe I should look into a way to import in bulk, but before trying to polish this turd I went to look on using OPFS for the filesystem... and oh boy, what a mess. For starters, OPFS can only work on a worker, and browser extensions have a complicated story with workers. Then I realized that Plasmo uses Parcel , and parcel can not figure out how to bundle wasm. (Again, could be an skill issue)