-
Notifications
You must be signed in to change notification settings - Fork 10
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
Use databases for saving #99
Comments
Update: I looked into it and SQLite might be a bad choice. On one hand, very small resolutions are in the ideal size range for SQLite, but on the other hand, our record resolutions take up multiple TBs and require concurrent access by several hundred threads (e.g. to compute products) which is the opposite of ideal. With that said, something like PostgreSQL would work great with the large resolutions but would be massive overkill for the small ones. Maybe we should abstract over the backing databases so we can choose at compile/run time? |
I think sql just completely lacks ability to concurrently access from multiple processes (as opposed to threads), so having an interface that supports sqlite could be quite difficult
|
You're right. In that case we might want to have a new "database" feature that connects to postgres. That way we can keep the low-overhead save format for small resolutions |
I'll have to add some methods in fp for saving and loading from sql, so I think it would be better if we finalize #53 beforehand, and possibly the upcoming matrix rewrite as well |
It would be more convenient to store resolutions using some kind of database, e.g. SQLite.
I would like to be assigned to this issue if that's ok. We can discuss the database scheme here or on Zulip.
The text was updated successfully, but these errors were encountered: