mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
During events such as stream / topic name edit for a topic, we were running queries to db in loop for each message for reactions, submessages and realm_id. This commit reduces the queries to be done only for realm_id, which is yet to be fixed. This is accomplished by building messages with empty reactions and submessages and then updating them in the messages using bulk queries.
6.5 KiB
6.5 KiB