summary refs log tree commit diff
path: root/synapse/storage/databases/main/event_push_actions.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-01-21 14:44:12 +0000
committerGitHub <noreply@github.com>2021-01-21 14:44:12 +0000
commit7a43482f1916622967f5a4b389f93944dd5deb07 (patch)
tree067807264e4296afce13edae43743bc0ee281928 /synapse/storage/databases/main/event_push_actions.py
parentAdd tests for List Users Admin API (#9045) (diff)
downloadsynapse-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.py4
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 = ?