mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 18:06:44 +00:00
After fixing the high numbers of database queries earlier in this branch, I found that sending 500 RabbitMQ messages for a bulk change in subscriptions was consuming more than half the time for these (and then we'd end up with 500 events in a queue). To handle this, we create a "user X subscribed to these N streams" event, rather than sending one event for each individual subscription. (imported from commit 44a34a9fab9b67e9f0da6fee53335d8c5030392b)
43 KiB
43 KiB