-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
At present there are few indexes that are never used, unused indexes can affect insert performance so they are removed. Signed-off-by: yolossn <santhosh@kinvolk.io>
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,23 @@ | ||
-- +migrate Up | ||
|
||
drop index if exists users_team_id_idx; | ||
|
||
drop index if exists instance_status_history_application_id_idx; | ||
|
||
drop index if exists event_event_type_id_idx; | ||
|
||
drop index if exists event_application_id_idx; | ||
|
||
drop index if exists channel_package_id_idx; | ||
|
||
-- +migrate Down | ||
|
||
create index if not exists users_team_id_idx on users (team_id); | ||
|
||
create index if not exists instance_status_history_application_id_idx on instance_status_history (application_id); | ||
|
||
create index if not exists event_event_type_id_idx on event (event_type_id); | ||
|
||
create index if not exists event_application_id_idx on event (application_id); | ||
|
||
create index if not exists channel_package_id_idx on channel (package_id); |