-
Notifications
You must be signed in to change notification settings - Fork 2
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
Rewrite Grades v2 data synchronizer in async Rust #797
Rewrite Grades v2 data synchronizer in async Rust #797
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Also quite a bit of spaghetti here but it's good enough for an MVP imo |
So the point of this is to update the grades.no backend db? |
We are replacing the entire site |
|
let database_url = | ||
std::env::var("DATABASE_URL").expect("missing DATABASE_URL environment variable"); | ||
let max_connections = std::env::var("MAX_CONNECTIONS") | ||
.unwrap_or_else(|_| "10".to_string()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this could be a constant variable instead of a magic number?
Wild pull request, love it |
Still not too sure how good of an idea introducing Rust to the monorepo is but here goes
Ad-hoc Benchmarks
A lot of this speed is probably not rust, but...