tursodatabase / libsql

libSQL is a fork of SQLite that is both Open Source, and Open Contributions.
https://turso.tech/libsql
MIT License
11.27k stars 286 forks source link

Move in-memory cache to disk #1502

Closed avinassh closed 4 months ago

avinassh commented 4 months ago

Previously, libsql-storage stored all the data in-memory. It kept a in-memory frame cache and also cached all the transient transaction writes in-memory. This patch changes it to store the data on local disk. This data is transient in nature, disk loss should not cause any issues.