-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f1099e
commit 6828a5d
Showing
3 changed files
with
42 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
30 changes: 30 additions & 0 deletions
30
svc/pkg/workflow/db/workflow/migrations/20240809230231_fix_loop_idx.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
CREATE INDEX idx_workflow_loop_events_loop_location2 | ||
ON workflow_loop_events (workflow_id, loop_location) | ||
WHERE forgotten = FALSE; | ||
|
||
CREATE INDEX idx_workflow_activity_events_loop_location2 | ||
ON workflow_activity_events (workflow_id, loop_location) | ||
WHERE forgotten = FALSE; | ||
|
||
CREATE INDEX idx_workflow_signal_events_loop_location2 | ||
ON workflow_signal_events (workflow_id, loop_location) | ||
WHERE forgotten = FALSE; | ||
|
||
CREATE INDEX idx_workflow_sub_workflow_events_loop_location2 | ||
ON workflow_sub_workflow_events (workflow_id, loop_location) | ||
WHERE forgotten = FALSE; | ||
|
||
CREATE INDEX idx_workflow_signal_send_events_loop_location2 | ||
ON workflow_signal_send_events (workflow_id, loop_location) | ||
WHERE forgotten = FALSE; | ||
|
||
CREATE INDEX idx_workflow_message_send_events_loop_location2 | ||
ON workflow_message_send_events (workflow_id, loop_location) | ||
WHERE forgotten = FALSE; | ||
|
||
DROP INDEX workflow_loop_events@idx_workflow_loop_events_loop_location; | ||
DROP INDEX workflow_activity_events@idx_workflow_activity_events_loop_location; | ||
DROP INDEX workflow_signal_events@idx_workflow_signal_events_loop_location; | ||
DROP INDEX workflow_sub_workflow_events@idx_workflow_sub_workflow_events_loop_location; | ||
DROP INDEX workflow_signal_send_events@idx_workflow_signal_send_events_loop_location; | ||
DROP INDEX workflow_message_send_events@idx_workflow_message_send_events_loop_location; |