mirror of
https://github.com/discourse/discourse.git
synced 2025-03-13 19:05:28 +08:00

due to an issue with LEFT JOIN, we were enqueue a "chat summary" email for every new messages in a channel, instead of for every new mentions 😬 This bloated the sidekiq queue with a lot of unecessary jobs as seen in - https://meta.discourse.org/t/-/347197 - https://meta.discourse.org/t/-/346542 Thankfully, it wasn't sending those emails as the query for listing the unread mentions and dms was correct when generating the chat summary email.