Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
zilencer: Only fetch the column we actually care about.
Alex Vandiverd228c502e9b8
diff --git a/zilencer/views.py b/zilencer/views.pyindex 8e760921e71..18229b8ff73 100644--- a/zilencer/views.py+++ b/zilencer/views.py@@ -519,7 +519,7 @@ def remote_server_post_analytics(def get_last_id_from_server(server: RemoteZulipServer, model: Any) -> int:- last_count = model.objects.filter(server=server).order_by("remote_id").last()+ last_count = model.objects.filter(server=server).order_by("remote_id").only("remote_id").last()if last_count is not None:return last_count.remote_idreturn 0