summary refs log tree commit diff
path: root/synapse/storage/event_push_actions.py
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2016-12-20 12:14:08 +0000
committerMatthew Hodgson <matthew@matrix.org>2016-12-20 12:14:08 +0000
commit2998fa57b0b74b1c8483416cbf7c210292712550 (patch)
tree71635309dabff5abecb70c120fa1b878979a586f /synapse/storage/event_push_actions.py
parentBump version and changelog (diff)
parentuncommitted changes on matrix.org (diff)
downloadsynapse-github/hotfixes-v0.18.5.tar.xz
merge uncommitted changes from matrix.org into hotfixes-v0.18.5 github/hotfixes-v0.18.5 hotfixes-v0.18.5
Diffstat (limited to 'synapse/storage/event_push_actions.py')
-rw-r--r--synapse/storage/event_push_actions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/event_push_actions.py b/synapse/storage/event_push_actions.py

index 7de3e8c58c..1874737674 100644 --- a/synapse/storage/event_push_actions.py +++ b/synapse/storage/event_push_actions.py
@@ -101,11 +101,11 @@ class EventPushActionsStore(SQLBaseStore): # notif=1 sql = ( "SELECT count(*)" - " FROM event_push_actions ea" + " FROM (SELECT * FROM event_push_actions" " WHERE" " user_id = ?" " AND room_id = ?" - " AND %s" + " AND %s LIMIT 100) as ea" ) % (lower_bound(token, self.database_engine, inclusive=False),) txn.execute(sql, (user_id, room_id))