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

(Develop) Review API Updates Roles and Companies tables running avrage #138

Open
banushi-a opened this issue Feb 20, 2025 · 0 comments
Open

Comments

@banushi-a
Copy link
Contributor

The next subtask of this epic is to update these new values in the Roles and Companies tables when Reviews are 1) Added, 2) Updated, and 3) Deleted. We will need to update all three at once. One way we can ensure they are all added at once are using drizzle transactions. These operate on an "all or nothing" basis, so we can make sure the actual review averages and the values stored in the Roles and Companies tables stay in sync.
When we do this we will most likely need to wipe the database of all its reviews to make sure the running averages are actually in-line with the actual review averages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant