From a24492c06f48bd76cf86931d42c940428687c311 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 21 Feb 2017 13:58:55 +0000 Subject: [PATCH] Don't limit count --- synapse/storage/event_push_actions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/storage/event_push_actions.py b/synapse/storage/event_push_actions.py index 753784307..52d2bd3ff 100644 --- a/synapse/storage/event_push_actions.py +++ b/synapse/storage/event_push_actions.py @@ -157,11 +157,11 @@ class EventPushActionsStore(SQLBaseStore): # notif=1 sql = ( "SELECT count(*)" - " FROM (SELECT * FROM event_push_actions" + " FROM event_push_actions ea" " WHERE" " user_id = ?" " AND room_id = ?" - " AND %s LIMIT 100) as ea" + " AND %s" ) % (lower_bound(token, self.database_engine, inclusive=False),) txn.execute(sql, (user_id, room_id))