Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
topic: Set a max batch_size on bulk_upate call.
Alex Vandiver570ff08fdedb
diff --git a/zerver/lib/topic.py b/zerver/lib/topic.pyindex 4c9506269bc..fda3dbe3fb9 100644--- a/zerver/lib/topic.py+++ b/zerver/lib/topic.py@@ -196,7 +196,7 @@ def update_messages_for_topic_edit(for message in messages_list:update_edit_history(message, last_edit_time, edit_history_event)- Message.objects.bulk_update(messages_list, update_fields)+ Message.objects.bulk_update(messages_list, update_fields, batch_size=100)return messages_list