I recently tried to view some of the
merit stats reports and received a Cloud Flare error message when trying to view some of the reports, specifically the top merited topics and replies, recent and all time.
The error message said the web server timed out, and gave this information:
If you're the owner of this website:
The connection to the origin web server was made, but the origin web server timed out before responding. The likely cause is an overloaded background task, database or application, stressing the resources on your web server...
Cloudflare Ray ID: 635d08ee1d92184b
I have noticed these reports can oftentimes take several seconds to load when they actually load.
Based on the above, I strongly suspect that when someone tries to navigate to one of these pages, a report will be generated that is up-to-date as of when the report is pulled, and the report will only be displayed to that specific person. So if two people go to the
top merited topics, all time page, 5 minutes apart, two reports will be generated (that are identical, most likely), with each report being displayed to one user.
This is not ideal because the all-time reports need to query every merit transaction, which after 4 years is a lot. I would propose that as an alternative, with the exception of 'recent merits' and 'merit sources', that a user going to any of the merit stats pages will return a static page, and the static page can have a report that is updated every x amount of time. The frequency of how often these static pages should update should depend on how often the output of the reports has historically changed, particularly the rankings. I might suggest the reports be updated no less frequently than once per day.