Open hburn7 opened 4 weeks ago
I think before we implement anything for the global stats page we should revisit caching. These will be expensive queries that will evaluate over entire tables and we shouldn't run them on every request. The results should be cached with a long lifetime
Could easily be cached on a 3-6 hour timer
Overview
High level objective is to model the number of registered users over time. This is simply displaying a collection of time-series data.
TimeSeriesDataPointDTO
(if it doesn't exist) which maps this query result into a structure likeobject Y, DateTime X
.Tasks
UserRepository
@myssto if you think this should be in aStatsRepository
instead let me know.StatisticsService
class (if it doesn't exist) with a method which maps the results to a collection of DTOs, i.e.ICollection<TimeSeriesDataPointDTO>
/api/v1/stats/registered-users
route which returns