Patch #19706
closed
Issue show : optimizations
Added by Jérôme BATAILLE almost 11 years ago.
Updated over 10 years ago.
Description
# in app/controllers/issue_controller.rb in
def show
@changesets = @issue.changesets.visible.includes([:repository, :user, :issues]).all
# in app/helper/issues_helper in :
def render_descendants_tree(issue)
issue_list(issue.descendants.visible.includes([:status, :priority, :tracker]).sort_by(&:lft)) do |child, level|
Some optimizations could be made in parse_redmine_links too, because issues and priorities are loaded multiple times (from cache though)
- Category set to Performance
- Status changed from New to Resolved
- Assignee set to Jean-Philippe Lang
- Target version set to 3.0.3
Patch committed with slight changes, thanks.
- Status changed from Resolved to Closed
- Target version changed from 3.0.3 to 2.6.5
Thanks for having reviewed this patch !
Also available in: Atom
PDF