mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-02 17:26:04 -04:00
Don't limit count
This commit is contained in:
parent
ede125b7e1
commit
a24492c06f
1 changed files with 2 additions and 2 deletions
|
@ -157,11 +157,11 @@ class EventPushActionsStore(SQLBaseStore):
|
||||||
# notif=1
|
# notif=1
|
||||||
sql = (
|
sql = (
|
||||||
"SELECT count(*)"
|
"SELECT count(*)"
|
||||||
" FROM (SELECT * FROM event_push_actions"
|
" FROM event_push_actions ea"
|
||||||
" WHERE"
|
" WHERE"
|
||||||
" user_id = ?"
|
" user_id = ?"
|
||||||
" AND room_id = ?"
|
" AND room_id = ?"
|
||||||
" AND %s LIMIT 100) as ea"
|
" AND %s"
|
||||||
) % (lower_bound(token, self.database_engine, inclusive=False),)
|
) % (lower_bound(token, self.database_engine, inclusive=False),)
|
||||||
|
|
||||||
txn.execute(sql, (user_id, room_id))
|
txn.execute(sql, (user_id, room_id))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue