Station has last_update, and TimeseriesGroup and Timeseries have start_date and end_date, and all these have a _naive version (total 10 properties). The front page, which fetches the last_update for many stations, could be quite expensive because it has to query a large number of time series. We should cache these in the Django cache.
All these caches should be invalidated in Timeseries.save().
Station
haslast_update
, andTimeseriesGroup
andTimeseries
havestart_date
andend_date
, and all these have a_naive
version (total 10 properties). The front page, which fetches thelast_update
for many stations, could be quite expensive because it has to query a large number of time series. We should cache these in the Django cache.All these caches should be invalidated in
Timeseries.save()
.