Actions
Patch #21582
closedPerformance in User#roles_for_project
Patch #21582:
Performance in User#roles_for_project
Description
roles are duplicating a scope not an result, thus every hit produce a query, cached, but it is still not desired.
Files
Updated by Go MAEDA almost 11 years ago
Updated by Ondřej Ezr almost 11 years ago
true, I just put to_a there with heureka feeling, but you are right dup is meaningless now :)
Updated by Go MAEDA almost 11 years ago
Thanks for your feedback. Nice eureka!
Updated by Jean-Philippe Lang almost 11 years ago
- Subject changed from Performance in roles to Performance in User#roles_for_project
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
Committed, thanks.
Actions