Skip to content
  • Andreas Brandl's avatar
    Remove N+1 query for Noteable association. · 6ca1f308cabb
    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.
    6ca1f308cabb