Skip to content
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 database connection instead of API #72

Merged
merged 54 commits into from
Sep 10, 2024
Merged

Use database connection instead of API #72

merged 54 commits into from
Sep 10, 2024

Conversation

hburn7
Copy link
Collaborator

@hburn7 hburn7 commented Sep 10, 2024

Database refactor

This is a substantial refactor of the processor. Instead of making an API connection, we now use a direct database connection. This substantially improves speed and reliability.

Additionally, the following changes have been made:

  • Refactoring types to use new o!TR database types.
  • Use the minimum amount of necessary fields in these types.
  • Refactor all structs to use new types
  • Refactor otr_model entirely (with help from @SourMongoose), utilizing the new algorithm @cytusine0 & @SourMongoose came up with.
  • Improve quality in main.rs, each step of the processing pipeline is clearly outlined and documented.
  • Remove global / country rank & percentile historical tracking. Should improve speeds substantially.

@hburn7 hburn7 merged commit 1d3bd8b into master Sep 10, 2024
3 checks passed
@hburn7 hburn7 deleted the database branch September 10, 2024 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant