Fix N+1 issue in note discussions
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.
Showing
Please register or sign in to comment