diff options
author | Erik Johnston <erik@matrix.org> | 2016-11-23 15:59:59 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-11-23 15:59:59 +0000 |
commit | 1985860c6e0ff8f60e5b96dfb46a7208085aa83f (patch) | |
tree | a7a0e7eaa83aea82ec9a4a3bbbf8a3c47cdc0095 /synapse/storage | |
parent | More efficient notif count queries (diff) | |
download | synapse-1985860c6e0ff8f60e5b96dfb46a7208085aa83f.tar.xz |
Comment
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/event_push_actions.py | 4 |
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" |