Skip to content

Commit

Permalink
[backend] Add index for expectations on inject
Browse files Browse the repository at this point in the history
  • Loading branch information
savacano28 committed Oct 17, 2024
1 parent 880fa16 commit cce83f8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@ public void migrate(Context context) throws Exception {
Connection connection = context.getConnection();
Statement select = connection.createStatement();
select.execute("CREATE INDEX IF NOT EXISTS idx_inject_expectation_inject_id ON injects_expectations(inject_id);");
select.execute("CREATE INDEX IF NOT EXISTS idx_inject_expectation_team_id ON injects_expectations(team_id);");
select.execute("CREATE INDEX IF NOT EXISTS idx_inject_expectation_user_id ON injects_expectations(user_id);");
select.execute("CREATE INDEX IF NOT EXISTS idx_inject_expectation_asset_group_id ON injects_expectations(asset_group_id);");
select.execute("CREATE INDEX IF NOT EXISTS idx_inject_expectation_asset_id ON injects_expectations(asset_id);");
select.execute("CREATE INDEX IF NOT EXISTS idx_inject_expectation_exercise_id ON injects_expectations(exercise_id);");
}
}

0 comments on commit cce83f8

Please sign in to comment.