Skip to content

Commit

Permalink
backend: Remove redundant index
Browse files Browse the repository at this point in the history
After the recent changes to improve the chart
performances this query has become redundant,
so this is removed.

Signed-off-by: Santhosh Nagaraj S <[email protected]>
  • Loading branch information
yolossn committed Jun 28, 2022
1 parent 8d6076d commit 4fd8049
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 4fd8049

Please sign in to comment.