Project

General

Profile

Patch #39840 ยป optimize-relation.patch

Go MAEDA, 2023-12-13 14:17

View differences:

app/models/issue.rb
1166 1166
  end
1167 1167

  
1168 1168
  def relations
1169
    @relations ||= IssueRelation::Relations.new(self, (relations_from + relations_to).sort)
1169
    @relations ||= IssueRelation::Relations.new(
1170
      self,
1171
      IssueRelation.where('issue_to_id = ? OR issue_from_id = ?', id, id).sort
1172
    )
1170 1173
  end
1171 1174

  
1172 1175
  def last_updated_by
    (1-1/1)