forked from MirrorHub/synapse
Merge pull request #5291 from matrix-org/erikj/add_index
Add index to temp bg update extremity table
This commit is contained in:
commit
57b3751918
2 changed files with 2 additions and 0 deletions
1
changelog.d/5291.bugfix
Normal file
1
changelog.d/5291.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Fix bug where we leaked extremities when we soft failed events, leading to performance degradation.
|
|
@ -20,3 +20,4 @@ INSERT INTO background_updates (update_name, progress_json) VALUES
|
|||
|
||||
DROP TABLE IF EXISTS _extremities_to_check; -- To make this delta schema file idempotent.
|
||||
CREATE TABLE _extremities_to_check AS SELECT event_id FROM event_forward_extremities;
|
||||
CREATE INDEX _extremities_to_check_id ON _extremities_to_check(event_id);
|
||||
|
|
Loading…
Reference in a new issue