Improve performance of counter on index page
|Reported by:||Nicklas Nordborg||Owned by:||Nicklas Nordborg|
We have made some improvements before, but with the current design it may still take several seconds to display all counters.
The new idea is to implement a "counter service" which performs the count in the background at regular intervals. The counts are cached on the server and can then be served with a single request that just returns a pre-formatted json object.
The service should not have to update the counter very often, but we should then also add a call from each servlet that make updates to set a flag for forcing a new count.