Patch #39840 ยป optimize-relation.patch
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 |