-
-
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
Adding a new word to Glossary is very slow #5418
Comments
It's a limitation of current implementation - it immediately adds strings to the files and that is slow. There are no checks involved in the glossary. There is a plan to rewrite it to split adding of the strings from saving to the files (similarly like we do with changes to existing strings). |
@nijel => Ok thanks for your clear and quick answer, In the meanwhile I will use this feature (add new term to glossary) with caution 🤝. |
There is no reason why it should be embedded as all callers skip save anyway. Issue #5418
This will be used to track additional details which do not have to be queried. Issue #5418
It will be used for upcoming features. Issue #5418
Create a in-memory storage and validate the string would be added correctly. This also does a heavy cleanup in the file formats handling of new units and tests - these now properly test monolingual behavior. Issue WeblateOrg#5418
Create a in-memory storage and validate the string would be added correctly. This also does a heavy cleanup in the file formats handling of new units and tests - these now properly test monolingual behavior. Issue #5418
- This makes adding units cheap - they are only added to the database. - Units are written when commit is needed together with other pending changes. - Simplify the interface to no longer accept batches. The performance gain is now minimal and it makes the code way simpler (it can directly return added unit instead of list that would have to be processed by caller). Fixes WeblateOrg#5418 Fixes WEBLATE-64T
- This makes adding units cheap - they are only added to the database. - Units are written when commit is needed together with other pending changes. - Simplify the interface to no longer accept batches. The performance gain is now minimal and it makes the code way simpler (it can directly return added unit instead of list that would have to be processed by caller). Fixes #5418 Fixes WEBLATE-64T
Thank you for your report, the issue you have reported has just been fixed.
|
Thanks Michal 👍. |
Describe the issue
When adding a new glossary term ... pop-up stays displayed a looooonnnng time (while an icon is turning in the background near "Glossary")
I already tried
With short words => same issue
Second issue linked: several "Save" in the popup create several entries!
Steps to reproduce the behavior
Go to https://hosted.weblate.org
Context: viewed in french glossary while working on Weblate translation projetct.
Expected behavior
Priority:
Good luck for debug / troubleshoot 👍
The text was updated successfully, but these errors were encountered: