-
-
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
Automatic Translation using Weblate TM became "very expensive" with v4.3 #4703
Comments
There is already improvement scheduled for 4.3.1 |
Should be addresed by 241dd91 |
Thank you for your report, the issue you have reported has just been fixed.
|
Are you already running 4.3.1? The automatic translation can be responsible only for one of the PostgreSQL connections, the other two must be caused by something else. On the other side I also think it still performs worse than in 4.2 and I don't see any obvious reason for that. |
Yes, the instance was updated to 4.3.1 already. Maybe another user is running an auto-translation or search at the same time. Especially for long strings, the search really takes a couple seconds, even when translating and using Automatic Suggestions. |
That's horrible performance. I've just tested that on https://translate.fedoraproject.org/ (which has the biggest translation memory from the publicly available instances) and the TM results take around 300ms there. Did it really change with the 4.3 release for you? There were almost no code changes between 4.2 and 4.3 in terms of translation memory (and definitely no changes in the lookup code). |
I am not sure, actually. But we did not have any complaints from translators recently, only after we switched to 4.3 |
The migration to 4.3 is expected to take long, see https://docs.weblate.org/en/latest/admin/upgrade.html#upgrade-from-4-2-to-4-3 Let's skip the autotranslate part for now and let's take a look at TM performance. Did that change when upgrading to 4.3? There are no changes in that code between these releases. Maybe the database performance just got worse for some reason. Any changes in hardware or VM setup? |
Hardware and VM setup are exactly the same.
I am running some tests at the moment.
For instance, I noticed this issue with the wrong source lang tag in export file formats, which you already fixed. Thank you for that!
In order to correct the issues I had encountered, I deleted all TMs for that particupar project and imported them again.
So that project went from having a TM, to having no TM to having a new TM from imported segments.
I believe that the performance for this particular project is now very, very good. In fact better than ever.
But this not yet “proven” by real tests. At the moment I have a slight capacity issue and don’t have enough time to continue the tests right now ☹.
|
Deleting big amount of the TM entries would most likely trigger autovacuum on PostgreSQL, what can quite likely improve the database performance. |
Describe the bug
When you pre-translate an update with translations from Weblate Translation Memory, this seems to be very "expensinve" in terms of CPU (and also mem) usage because of postgres processes. Running auto trans from other components seems as fast as before, so does MT. But not from Weblate Translation Memory!
To Reproduce
Update resources with latest sprint data
Screenshots
Taking very, very long...
CPU usage:
Server configuration and status
Docker Weblate v 4.3
The text was updated successfully, but these errors were encountered: