Skip to content

Commit

Permalink
Add sectorID index to deal table (#1853)
Browse files Browse the repository at this point in the history
Speeds up a ton of queries
  • Loading branch information
RobQuistNL authored Dec 21, 2023
1 parent 13faaa8 commit 7891fe1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions db/migrations/202312210049_add_sectorid_index.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- +goose Up
-- +goose StatementBegin
CREATE INDEX IF NOT EXISTS index_deals_sector_id on Deals(SectorID);
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
DROP INDEX IF EXISTS index_deals_sector_id;
-- +goose StatementEnd

0 comments on commit 7891fe1

Please sign in to comment.