-
-
Notifications
You must be signed in to change notification settings - Fork 958
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
Table metrics_metric
is growing constantly
#6611
Comments
The upgrade to 4.6 introduced this and missing metrics are calculated on the fly, that's why you are seeing inserts for read-only access. That should stop once all past metrics are calculated. That's also why the table grows fast in the beginning, but it won't grow that much after that. |
How big table should I expect? Metrics taking twice as much space as the rest the data already seems to be a bit excessive. |
This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you! |
Looking at our production sites, it has roughly the same size as the translation data. We run PostgreSQL, though. There will be some improvements to that once #6616 is merged. |
The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.
|
I also encountered this scenario where this table reached several hundreds of MB (even with little use of Weblate). There should definitely exist some kind of pruning (or at least document whether it's safe to TRUNCATE this table or not) |
4.14.1 fixed pruning of unused data. You might want to vacuum the table then if there were a lot of pruned entries |
@nijel This table is still massive in my case (96% of database size): Over 300k records are added to this table every day. |
Please follow up to this topic in #8119 only. |
Describe the issue
4 days ago I updated Weblate from ancient 3.9.1 to most recent 4.8.1. Since then I'm seeing significant increase in number of queries, especially in terms of inserts.
Number of queries grows with number of pageviews, and they generates inserts even if they're just reads without modifying anything (so I can see bots visits on this graph). It looks like these write queries affects almost exclusively
metrics_metric
, which also seems to grow significantly since the upgrade (since yesterday its size increased from 200 MB to 400 MB) and now it is almost 70% of the whole database size. Is it normal that this table is so big and generates some many inserts? Is there any way to disable this behavior?Server configuration and status
Weblate deploy checks
The text was updated successfully, but these errors were encountered: