Commit graph

1 commit

Author SHA1 Message Date
Andreas Brandl
783868e9fa Remove N+1 query for Noteable association.
For each event with `Event#target_type` of "Note",
we had a query to load the associated instance `noteable`.

For example, if `Note` was related to an issue, we'd load each `Issue`
with its own query (N+1 problem).

Closes #43150.
2018-03-23 15:37:50 +01:00