• Stan Hu's avatar
    Reduce overhead of LabelFinder by avoiding #presence call · ed47f4a3
    Stan Hu authored
    Some users experienced 502 timeouts when viewing group labels.
    Labels#open_issues_count and Label#open_merge_requests_count were
    taking a long time to load because they were loading every ActiveRecord
    of the user-accessible projects into memory. This change modifies the system
    so that #presence and hence to_a isn't called.
    
    Closes #23684
    ed47f4a3
labels_finder.rb 1.76 KB