Actions
Patch #23196
closedSpeed up Project.allowed_to_condition
Status:
Closed
Priority:
Normal
Assignee:
Category:
Performance
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Description
In cases where there are many issues in a project and the Redmine instance has many projects with many enabled modules overall, Project.allowed_to_condition
can get painfully slow (>10 sec for a request in our tests on server grade hardware at Planio with large Redmine databases) because the subselect in source:trunk/app/models/project.rb@15586#L184 will get executed for each of the issues found in the project hierarchy.
Since the list of project ids returned by this query will be static for the scope of the call, it makes sense to cache it. In our tests, this results in a significant speedup (milliseconds vs. seconds).
A patch against current trunk is attached.
Files
Related issues
Updated by Jan from Planio www.plan.io almost 9 years ago
- File deleted (
0001-Eliminate-subselect-in-Project.allowed_to_condition-.patch)
Updated by Jean-Philippe Lang almost 9 years ago
- Related to Patch #21608: Project#allowed_to_condition performance added
Updated by Jan from Planio www.plan.io almost 9 years ago
- Assignee set to Jan from Planio www.plan.io
Updated by Go MAEDA over 8 years ago
- Target version changed from Candidate for next minor release to 3.4.0
Updated by Jean-Philippe Lang over 8 years ago
- Status changed from New to Closed
- Target version deleted (
3.4.0)
Actions