Skip to content

Commit

Permalink
add index so that deleting a scenario iteration does not get stuck fo…
Browse files Browse the repository at this point in the history
…r seconds
  • Loading branch information
Pascal-Delange committed Jun 7, 2024
1 parent c9ba831 commit 2d74cb8
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-- +goose Up
-- +goose StatementBegin
CREATE INDEX decisions_scenario_iteration_id_idx ON decisions (scenario_iteration_id);

CREATE INDEX decision_rules_rule_id_idx ON decision_rules (rule_id);

-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP INDEX decisions_scenario_iteration_id_idx;

DROP INDEX decision_rules_rule_id_idx;

-- +goose StatementEnd

0 comments on commit 2d74cb8

Please sign in to comment.