• Stan Hu's avatar
    Reduce overhead and optimize ProjectTeam#max_member_access performance · e21c7d37
    Stan Hu authored
    The previous implementation would load the entire team member list and their
    respective attributes. Now we only search for the user's specific
    access level.
    
    In gitlab-com/operations#42, this reduces the overall overhead of rendering
    the issue from 28% to 20%.
    
    First step of optimizing #19273
    e21c7d37
project_team.rb 5.15 KB