mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-09-09 13:52:09 +00:00
Merge pull request #1106 from matrix-org/erikj/state_reindex_concurrent
Create new index concurrently
This commit is contained in:
commit
7c679b1118
@ -820,7 +820,7 @@ class StateStore(SQLBaseStore):
|
||||
def reindex_txn(txn):
|
||||
if isinstance(self.database_engine, PostgresEngine):
|
||||
txn.execute(
|
||||
"CREATE INDEX state_groups_state_type_idx"
|
||||
"CREATE INDEX CONCURRENTLY state_groups_state_type_idx"
|
||||
" ON state_groups_state(state_group, type, state_key)"
|
||||
)
|
||||
txn.execute(
|
||||
|
Loading…
Reference in New Issue
Block a user