Skip to content

Commit

Permalink
add indexes to deals DB (#1857)
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr authored Dec 22, 2023
1 parent 7891fe1 commit a90b16e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions db/migrations/20231222114645_add_deal_index.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- +goose Up
-- +goose StatementBegin
CREATE INDEX IF NOT EXISTS index_deals_piece_cid on Deals(PieceCID);
CREATE INDEX IF NOT EXISTS index_deals_checkpoint on Deals(Checkpoint);
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
DROP INDEX IF EXISTS index_deals_piece_cid;
DROP INDEX IF EXISTS index_deals_checkpoint;
-- +goose StatementEnd

0 comments on commit a90b16e

Please sign in to comment.