-
-
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
Managing strings is still slow in large components #6802
Comments
Deleting strings should be implemented in future similarly as adding - the strings would be deleted in the database and removed from the file later. Until that, the performance for deleting will suffer. See #1993 |
This avoids additional query for component and related objects. Issue #6802
* Avoid repeated fetching of variant objects from the database * Update units in bulk Issue #6802
Scan only newly added units instead of updating all variants. Fixes #6802
Thank you for your report; the issue you have reported has just been fixed.
|
Adding is in 1.3s area now, not super fast, but stable now, thanks!
In PO case, maybe not necessary to actually delete strings from file, just mark obsolete? The translations could come in handy again later. |
It doesn't matter whether they are removed or marked obsolete, the round trip to the file makes it expensive. |
Describe the issue
#6207
I tried with Weblate 4.9 and unfortunately the issues persist.
I already tried
Steps to reproduce the behavior
Add a variant, delete a string from a large PO component (a few MB).
Expected behavior
Adding and deleting strings in under 1 second.
Screenshots
No response
Exception traceback
No response
How do you run Weblate?
Docker container
Weblate versions
Weblate deploy checks
Additional context
Attached is an example of one of several sql queries ran during deletion, which seems pretty crazy to me (just query text is 0.5Mb) sql.txt
The text was updated successfully, but these errors were encountered: