peerbit icon indicating copy to clipboard operation
peerbit copied to clipboard

`documents`: Allow for SQLLite WASM backend

Open marcus-pousette opened this issue 1 year ago • 2 comments

Problem Currently you run into RAM usage problem when having many documents because the document store index is in memory. Additionally, the query performance is very bad if there are many documents

Solution Use SQLLite WASM as an alternative backend together with OPFS storage

TODO

  • Make abstraction around index search engine
  • Implement a SQLLite WASM engine for this engine abstraction

#274

marcus-pousette avatar Feb 12 '24 09:02 marcus-pousette

Blocked by https://github.com/sqlite/sqlite-wasm/pull/48

Looking for alternatives how to glue this together to work in all envs

marcus-pousette avatar Mar 06 '24 15:03 marcus-pousette

Way forward For browsers: wa-sqlite For node native: sqlite3

marcus-pousette avatar Mar 08 '24 16:03 marcus-pousette