danielemery / quizlord-api

Graphql api for sharing newspaper quizzes between friends, including results and statistics
https://quizlord.net
MIT License
1 stars 0 forks source link

Recompute statistics every time a quiz completion is provided #77

Open danielemery opened 12 months ago

danielemery commented 12 months ago

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.