diff options
author | Erik Johnston <erik@matrix.org> | 2021-01-21 14:44:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 14:44:12 +0000 |
commit | 7a43482f1916622967f5a4b389f93944dd5deb07 (patch) | |
tree | 067807264e4296afce13edae43743bc0ee281928 /synapse/storage/databases/main/event_push_actions.py | |
parent | Add tests for List Users Admin API (#9045) (diff) | |
download | synapse-7a43482f1916622967f5a4b389f93944dd5deb07.tar.xz |
Use execute_batch in more places (#9188)
* Use execute_batch in more places * Newsfile
Diffstat (limited to 'synapse/storage/databases/main/event_push_actions.py')
-rw-r--r-- | synapse/storage/databases/main/event_push_actions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/databases/main/event_push_actions.py b/synapse/storage/databases/main/event_push_actions.py index 1b657191a9..438383abe1 100644 --- a/synapse/storage/databases/main/event_push_actions.py +++ b/synapse/storage/databases/main/event_push_actions.py @@ -487,7 +487,7 @@ class EventPushActionsWorkerStore(SQLBaseStore): VALUES (?, ?, ?, ?, ?, ?) """ - txn.executemany( + txn.execute_batch( sql, ( _gen_entry(user_id, actions) @@ -803,7 +803,7 @@ class EventPushActionsWorkerStore(SQLBaseStore): ], ) - txn.executemany( + txn.execute_batch( """ UPDATE event_push_summary SET notif_count = ?, unread_count = ?, stream_ordering = ? |