• Andreas Brandl's avatar
    Remove N+1 query for Noteable association. · 783868e9
    Andreas Brandl authored
    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.
    783868e9