summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-11-23 15:59:59 +0000
committerErik Johnston <erik@matrix.org>2016-11-23 15:59:59 +0000
commit1985860c6e0ff8f60e5b96dfb46a7208085aa83f (patch)
treea7a0e7eaa83aea82ec9a4a3bbbf8a3c47cdc0095 /synapse
parentMore efficient notif count queries (diff)
downloadsynapse-1985860c6e0ff8f60e5b96dfb46a7208085aa83f.tar.xz
Comment
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/event_push_actions.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/storage/event_push_actions.py b/synapse/storage/event_push_actions.py
index 6832274ebd..7de3e8c58c 100644
--- a/synapse/storage/event_push_actions.py
+++ b/synapse/storage/event_push_actions.py
@@ -96,7 +96,9 @@ class EventPushActionsStore(SQLBaseStore):
                 topological_ordering, stream_ordering
             )
 
-            # First get number of notifications
+            # First get number of notifications.
+            # We don't need to put a notif=1 clause as all rows always have
+            # notif=1
             sql = (
                 "SELECT count(*)"
                 " FROM event_push_actions ea"