calgo-lab / green-db

The monorepo that powers the GreenDB.
https://calgo-lab.github.io/green-db/
22 stars 2 forks source link

Leaderboards #103

Closed AdriaSG closed 1 year ago

AdriaSG commented 1 year ago

On this iteration, I'd refactored the last version of monitoring/monitoring_app.py . Main changes:

Now the app will just update cache once a week to avoid slow loading for all users. Although I tried to improve queries for leaderboards, it still takes sometime to load for the first time because it reviews all unique products in the database and calculate scores for products with credibility, ideas to improve related functions are welcome :)