diff options
author | Erik Johnston <erik@matrix.org> | 2020-02-19 15:47:11 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2020-02-19 15:47:11 +0000 |
commit | 7b7c3cedf2fdc0d0c05bbc651e0ff5b59921c3a2 (patch) | |
tree | 135c91e7079613aa99185100b3df26657f459cbb /synapse/storage/database.py | |
parent | Freeze allocated objects on startup. (#6953) (diff) | |
download | synapse-7b7c3cedf2fdc0d0c05bbc651e0ff5b59921c3a2.tar.xz |
Minor perf fixes to `get_auth_chain_ids`.
Diffstat (limited to 'synapse/storage/database.py')
-rw-r--r-- | synapse/storage/database.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/database.py b/synapse/storage/database.py index 3eeb2f7c04..6dcb5c04da 100644 --- a/synapse/storage/database.py +++ b/synapse/storage/database.py @@ -1504,7 +1504,7 @@ class Database(object): def make_in_list_sql_clause( database_engine, column: str, iterable: Iterable -) -> Tuple[str, Iterable]: +) -> Tuple[str, list]: """Returns an SQL clause that checks the given column is in the iterable. On SQLite this expands to `column IN (?, ?, ...)`, whereas on Postgres |