Skip to content

Commit

Permalink
Add database index
Browse files Browse the repository at this point in the history
  • Loading branch information
espebra committed Nov 8, 2023
1 parent e353f01 commit 6efe034
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ CREATE INDEX idx_cid ON transaction(client_id);
CREATE INDEX idx_transaction_timestamp ON transaction(timestamp);
CREATE INDEX idx_file_deleted_at_in_storage ON file(deleted_at, in_storage);
CREATE INDEX idx_bin_deleted_at_expired_at ON bin(expired_at, deleted_at);
CREATE INDEX idx_sha256 ON file(sha256);

CREATE TABLE ban (
id BIGSERIAL NOT NULL PRIMARY KEY,
Expand Down

0 comments on commit 6efe034

Please sign in to comment.