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

Recompute statistics every time a quiz completion is provided #77

Open
danielemery opened this issue Nov 12, 2023 · 0 comments
Open

Recompute statistics every time a quiz completion is provided #77

danielemery opened this issue Nov 12, 2023 · 0 comments
Labels
feature New feature or request

Comments

@danielemery
Copy link
Owner

Currently quiz statistics are computed on demand and then cached. This means that:

a) there is a significant cold start when a user asks for statistics and they result is not already cached
b) if a user completes a quiz and looks at statistics they will not see the results of their just-completed quiz

As an alternative it would be good to rerun the computation every time a quiz is completed.

  • This should not be done on the submit completion request but rather just started there (ideally later this will be on a worker but we don''t have one yet).
  • This should also be done on application start so the cache is already hot
  • The cache expiry should be removed or made very long (as it's now invalidation on completion it should not get out of date)
@danielemery danielemery added the feature New feature or request label Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant