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/registration.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/registration.py')
-rw-r--r-- | synapse/storage/databases/main/registration.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/registration.py b/synapse/storage/databases/main/registration.py index 8d05288ed4..585b4049d6 100644 --- a/synapse/storage/databases/main/registration.py +++ b/synapse/storage/databases/main/registration.py @@ -1104,7 +1104,7 @@ class RegistrationBackgroundUpdateStore(RegistrationWorkerStore): FROM user_threepids """ - txn.executemany(sql, [(id_server,) for id_server in id_servers]) + txn.execute_batch(sql, [(id_server,) for id_server in id_servers]) if id_servers: await self.db_pool.runInteraction( |