• Stan Hu's avatar
    Optimize maximum user access level lookup in loading of notes · d1ea2bca
    Stan Hu authored
    NotesHelper#note_editable? and ProjectTeam#human_max_access currently
    take about 16% of the load time of an issue page. This MR preloads
    the maximum access level of users for all notes in issues and merge
    requests with several queries instead of one per user and caches
    the result in RequestStore.
    d1ea2bca
ability.rb 15.6 KB