Big news, I've never attempted either. What sort of storage/performance limits are you seeing with OPFS? My past attempts at general caching with IndexedDB were useless because I didn't want to use too much storage. Also, I was not aware of OPFS. How much of this is in snort/system?

Reply to this note

Please Login to reply.

Discussion

Negentropy is part of snort/system, the worker relay is standalone with no dependency on snort/system, its here: https://git.v0l.io/Kieran/snort/src/branch/main/packages/worker-relay/src/sqlite-relay.ts

What percentage of your bundle is sqlite-wasm?

OPFS definitely doesn't have native disk perf, if you use the default DELETE journal mode it can get really slow when inserting events, sometimes 5 or more seconds to write a single event.

Query performance is really good, its far better than indexedDB thats for sure