Weasyl / weasyl

The website.
https://www.weasyl.com
Apache License 2.0
118 stars 33 forks source link

Separate metrics for retrieving notification counts from overall request metrics #1424

Closed charmander closed 2 months ago

charmander commented 2 months ago

Uncached notification count queries can be triggered unpredictably by almost every page and take a highly variable amount of time depending on the user (up to 7 seconds). Keeping this separate should make individual route metrics more useful.

charmander commented 2 months ago

I deployed this ahead of time, and it didn’t have as much of a clear impact on most of the graphs as I had hoped, but it did at least achieve the main goal of eliminating the peaks on the order of 7 seconds caused by notification counting from non-notification-related routes (mostly index).