-
-
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
Views are taking too much time to process when there are too many components and languages on the project #6269
Comments
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! |
This issue has been automatically marked as stale because there wasn’t any recent activity. It will be closed soon if no further action occurs. Thank you for your contributions! |
Most of this should be addressed in 9262194 - the component level stats were correctly updated, but the language level ones were not. |
There is no need to fetch translation objects here. Issue #6269
This utilizes shared component queryset. Issue #6269
Thank you for your report; the issue you have reported has just been fixed.
|
Describe the issue
When processing the
show_project
view, the request is taking too much time. This is not because of the rendering itself, this is because the ammount of data the context is requesting to generate before rendering the template.We've identified that, although we are paginating the components inside a project, we are trying to retrieve all the languages stats for the whole project, which basically iterates over all the components for the specific project that we are requesting and then requests their languages and merges it's stats.
This process is taking too much time to compute (more than 30 minutes to process).
This is only happening, as I mentioned, when the project has too many components and those components are translated into too many different languages.
I already tried
Monkey patching the library in order to do not compute the information displayed on the "languages" tab in order to reduce the amount of operations executed against the database, and this has decreased the process down to 5 secs.
To Reproduce the issue
Create a Project with 15.000 components. Translate those components into different languages so the total languages for this project is more or less 120 (Components should be translated at least to 10 different languages).
After that, you'll see that when trying to process the
show_project
view, it will take more than 1 minute.Expected behavior
The
show_project
view should be processed and rendered in a matter of seconds.Server configuration and status
Tested on 4.6.1 and 4.7, both versions are facing the same issue.
The text was updated successfully, but these errors were encountered: