• Sean McGivern's avatar
    Fix N+1 queries for non-members in comment threads · 7f73f440
    Sean McGivern authored
    When getting the max member access for a group of users, we stored the results
    in RequestStore. However, this will only return results for project members, so
    anyone who wasn't a member of the project would be checked once at the start,
    and then once for each comment they made. These queries are generally quite
    fast, but no query is faster!
project_team.rb 4.53 KB