-
-
Notifications
You must be signed in to change notification settings - Fork 959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve global stats calculation #9662
Comments
nijel
added a commit
to nijel/weblate
that referenced
this issue
Oct 3, 2023
Always calculate up-to-date stats for a translation on a change, parent stats are updated automatically in the background. There is no explicit cache invalidation anymore to make sure some stats are always present (and thus nearly no request on higher level will force calculating them). This might cause that parent stats are showing outdated number for very short time, but this should cause no harm. Fixes WeblateOrg#9662
5 tasks
nijel
added a commit
to nijel/weblate
that referenced
this issue
Oct 3, 2023
Always calculate up-to-date stats for a translation on a change, parent stats are updated automatically in the background. There is no explicit cache invalidation anymore to make sure some stats are always present (and thus nearly no request on higher level will force calculating them). This might cause that parent stats are showing outdated number for very short time, but this should cause no harm. Fixes WeblateOrg#9662
nijel
added a commit
to nijel/weblate
that referenced
this issue
Oct 3, 2023
Always calculate up-to-date stats for a translation on a change, parent stats are updated automatically in the background. There is no explicit cache invalidation anymore to make sure some stats are always present (and thus nearly no request on higher level will force calculating them). This might cause that parent stats are showing outdated number for very short time, but this should cause no harm. Fixes WeblateOrg#9662
nijel
added a commit
to nijel/weblate
that referenced
this issue
Oct 4, 2023
Always calculate up-to-date stats for a translation on a change, parent stats are updated automatically in the background. There is no explicit cache invalidation anymore to make sure some stats are always present (and thus nearly no request on higher level will force calculating them). This might cause that parent stats are showing outdated number for very short time, but this should cause no harm. Fixes WeblateOrg#9662
nijel
added a commit
to nijel/weblate
that referenced
this issue
Oct 4, 2023
Always calculate up-to-date stats for a translation on a change, parent stats are updated automatically in the background. There is no explicit cache invalidation anymore to make sure some stats are always present (and thus nearly no request on higher level will force calculating them). This might cause that parent stats are showing outdated number for very short time, but this should cause no harm. Fixes WeblateOrg#9662
nijel
added a commit
that referenced
this issue
Oct 4, 2023
Always calculate up-to-date stats for a translation on a change, parent stats are updated automatically in the background. There is no explicit cache invalidation anymore to make sure some stats are always present (and thus nearly no request on higher level will force calculating them). This might cause that parent stats are showing outdated number for very short time, but this should cause no harm. Fixes #9662
Thank you for your report; the issue you have reported has just been fixed.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the problem
The global stats update is time-consuming and happens in situations where exact counts are not really necessary.
Describe the solution you'd like
Updating should be pushed by changes instead of always purging all caches.
invalidate
at translation and component level would only invalidate their caches (with childs)This will make high-level stats up-to-date without recalculating them from the request.
Describe alternatives you've considered
No response
Screenshots
No response
Additional context
This makes rendering views depending on global stats slow on busy sites as it has to update the stats in nearly every request, see https://sentry.weblate.org/organizations/weblate/performance/summary/?project=2&query=&referrer=performance-transaction-summary&statsPeriod=7d&transaction=%2Fexports%2Fog.png&unselectedSeries=p100%28%29&unselectedSeries=avg%28%29
The text was updated successfully, but these errors were encountered: