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

Calculate avg more efficiently #9

Open
mjip opened this issue Sep 20, 2018 · 0 comments
Open

Calculate avg more efficiently #9

mjip opened this issue Sep 20, 2018 · 0 comments

Comments

@mjip
Copy link
Member

mjip commented Sep 20, 2018

Right now, when the average is recalculated, it'll loop through every entry. We don't have too many entries right now, but this will get inefficient fast. The DB needs to be updated with the count of how many puzzles someone has done (regular + saturday), and the avg could then be recalculated with https://math.stackexchange.com/questions/106313/regular-average-calculated-accumulatively. Related to #3, since both require updating the DB to keep track of counts.

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

No branches or pull requests

1 participant