mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-30 11:33:51 +00:00 
			
		
		
		
	bulk_update: Do updates in bulk where applicable.
This commit is contained in:
		| @@ -65,7 +65,7 @@ Usage: ./manage.py deliver_scheduled_messages | ||||
|                     with transaction.atomic(): | ||||
|                         do_send_messages([self.construct_message(message)]) | ||||
|                         message.delivered = True | ||||
|                         message.save(update_fields=['delivered']) | ||||
|                 Message.objects.bulk_update(messages_to_deliver, ['delivered']) | ||||
|  | ||||
|             cur_time = timezone_now() | ||||
|             time_next_min = (cur_time + timedelta(minutes=1)).replace(second=0, microsecond=0) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user