NIAEFEUP / tts-be

A platform where students can experiment with the possible combination of schedule options they can pick at the start of the semester
https://tts.niaefeup.pt
5 stars 1 forks source link

Analysis Tool - Scheduled Caching #47

Closed SergioEstevao11 closed 11 months ago

SergioEstevao11 commented 1 year ago

Currently, the caching of the statistics is made synchronously: when a user makes a GET request on the '/statistics/` endpoint, the current statistics are cached. This is unreliable since it requires someone to make these requests for us to have a good chronological representation of the statistics over time. An asynchronous implementation that caches the statistics 1x or 2x a day is needed. Suggestion:

SergioEstevao11 commented 1 year ago

Instead of writing to a file, save into a SQLite database (use the Python libraries for this db)