plezanje-net / api

NestJS GraphQL web server
GNU General Public License v3.0
7 stars 2 forks source link

Feature/queued operations #156

Closed demshy closed 1 year ago

demshy commented 1 year ago

Changes seasonality on crags and tick counts on routes to db fields instead of resolvers, by adding bull queue and triggers that update the data when activities / activity routes are saved. After this is deployed, processAllCrags mutation will need to be called (takes a few minutes) to save all the crags and routes.

Test by logging some routes and observing the numbers and adding some visits to crags in unvisited months and seeing that the graph changes after a refresh.