Skip to content

Commit

Permalink
Merge pull request #614 from kinvolk/remove_redundant_index
Browse files Browse the repository at this point in the history
backend: Remove redundant index
  • Loading branch information
joaquimrocha committed Jun 29, 2022
2 parents 8d6076d + 4fd8049 commit 1f59cde
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
23 changes: 23 additions & 0 deletions backend/pkg/api/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions backend/pkg/api/db/migrations/0017_drop_unused_indexes.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- +migrate Up

drop index if exists instance_application_application_id_group_id_last_check_for_idx;

-- +migrate Down

create index if not exists instance_application_application_id_group_id_last_check_for_idx on instance_application(application_id,group_id,last_check_for_updates,instance_id);

0 comments on commit 1f59cde

Please sign in to comment.