Caching
Brought to you by:
davidwbinns,
hhe
The SwGraph reads all the data for the period to be
displayed from the database for each request. It could
potentially improve performance if the data was stored
in memory, and only data since the last request would
be retrieved from the database.
And more advanced, a second thread could regularly
update the data in memory, so that an incoming request
could be answered immediately from memory.