-
Notifications
You must be signed in to change notification settings - Fork 23
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
Investigate diesel #142
Comments
I've started with this today. Regarding the outlined questions
Short answer: it is not easily possible to write generic code which would allow us to use either sqlite or postgres. Longer answer: diesel-rs/diesel#2384
So far I can't say much about this due to using very simple types.
It's sync but that shouldn't be a problem (imho) |
Note: Have you considered using Not saying that we will need it from the getgo, but with sync code we will limit the number of db connections that can execute to the number of threads (and a threadpool). I think for the app and sqlite that should be fine, I don't expect heavy load there, but for the Ordinator this might be a different story, as there will be more load. We can roll with a sync implementation initially and can see :) |
I don't see the need for async yet. I would assume that our db queries are super short running which should hopeflly hardly have an effect on the remaining application. |
For our databases (e.g. #26 ) we want to consider Diesel instead sqlx this time.
The goal of this ticket is to have a simple PoC setup with CRUD functionality
Things to look into:
The text was updated successfully, but these errors were encountered: