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/state | |
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/state')
-rw-r--r-- | synapse/storage/databases/state/store.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/databases/state/store.py b/synapse/storage/databases/state/store.py index 0e31cc811a..89cdc84a9c 100644 --- a/synapse/storage/databases/state/store.py +++ b/synapse/storage/databases/state/store.py @@ -565,11 +565,11 @@ class StateGroupDataStore(StateBackgroundUpdateStore, SQLBaseStore): ) logger.info("[purge] removing redundant state groups") - txn.executemany( + txn.execute_batch( "DELETE FROM state_groups_state WHERE state_group = ?", ((sg,) for sg in state_groups_to_delete), ) - txn.executemany( + txn.execute_batch( "DELETE FROM state_groups WHERE id = ?", ((sg,) for sg in state_groups_to_delete), ) |