-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Consider a default on-disk database instead of (or as well as) "temporary" in-memory #87
Comments
I just put quite a bit of work into ensuring the temporary in-memory database can be dumped to disk and then restored on a server restart, in #42. Maybe that work was misguided and this offers a better solution to that problem? |
Quoting #77 (comment)
|
I'm sticking with the new "recently opened" menu - I'm not going to change how "temporary" works, at least for the moment. |
I designed the in-memory temporary database to support ad-hoc analysis of CSV data - something I do a lot of.
But on thinking about this further, one of my favourite features of several Mac apps - VS Code, Apple Notes and suchlike - is that if they quit or I crash or I restart my computer they never lose any of my data. I often have dozens of unsaved VS Code documents open for random notes and I would be very sad if I lost them due to a crash or restart.
Maybe Datasette Desktop should embrace that philosophy? It could have a single
scratch.db
database which is always there and is backed by a file on disk, such that you won't lose any data accidentally.The text was updated successfully, but these errors were encountered: