• Jan Provaznik's avatar
    Fix N+1 issue in note discussions · 3b78576e
    Jan Provaznik authored
    When rendering discussions, we refer back to note.discussion, but
    because this association is not set, we find discussion by id
    again for each note. TO avoid this, note's discussion is preset
    when discussion instance is created.
    3b78576e
discussions_nplusone.yml 108 Bytes