summary refs log tree commit diff
path: root/synapse/storage/databases/main/search.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/search.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/search.py')
-rw-r--r--synapse/storage/databases/main/search.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/databases/main/search.py b/synapse/storage/databases/main/search.py
index e34fce6281..871af64b11 100644
--- a/synapse/storage/databases/main/search.py
+++ b/synapse/storage/databases/main/search.py
@@ -63,7 +63,7 @@ class SearchWorkerStore(SQLBaseStore):
                 for entry in entries
             )
 
-            txn.executemany(sql, args)
+            txn.execute_batch(sql, args)
 
         elif isinstance(self.database_engine, Sqlite3Engine):
             sql = (
@@ -75,7 +75,7 @@ class SearchWorkerStore(SQLBaseStore):
                 for entry in entries
             )
 
-            txn.executemany(sql, args)
+            txn.execute_batch(sql, args)
         else:
             # This should be unreachable.
             raise Exception("Unrecognized database engine")