New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
any plans to support persistence for Browser like leveldb #213
Comments
In the interim, I've been using json-based export/import relations against browser's origin private filesystem. It isn't the fastest solution but provides the functionality. Ideally I'd love to have the ability to load and save data in binary. |
@chuanqisun We've done something similar, with in-memory cozo + localstorage (instead of origin private filesystem). We find it's working-ish. It's not super stable, and definitely not a long-term solution :) Would be interest to hear how you implemented it. Do you export/write file after every cozo operation? Or periodically? And then import on page load? |
@simonwh, my technique isn't ideal either. Exporting on every transaction causes performance issue. My workaround:
In my opinion, a good continuous export implementation is a balancing act between the inevitable tradeoff between performance and data integrity. A few ideas I find useful:
|
I am also interested in this. A few thoughts:
|
I would love browser based persistentence for local first applications. I wonder if saving to ElectricSQL would be possible, enabling automatic sync to a back end as well? |
Cozo wasm module is amazing but lacks persistence for in-browser apps .
Support of leveldb or any browser-based persistence could open a lot of usecases
The text was updated successfully, but these errors were encountered: