Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add index to temp bg update extremity table #5291

Merged
merged 2 commits into from
May 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/5291.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix bug where we leaked extremities when we soft failed events, leading to performance degradation.
Original file line number Diff line number Diff line change
Expand Up @@ -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);