• Stan Hu's avatar
    Fix N+1 queries when loading participants for a commit note · 775211bc
    Stan Hu authored
    We saw about 10,000 SQL queries for some commits in the NewNoteWorker,
    which stalled the Sidekiq queue for other new notes. The notification
    service took up to 8 minutes to process the commits. Avoiding this
    N+1 query brings the time down significantly.
    
    Closes #45526
    775211bc
commit.rb 11.1 KB