Skip to content

Commit

Permalink
Add hash index
Browse files Browse the repository at this point in the history
  • Loading branch information
perekopskiy committed Oct 18, 2021
1 parent bc41fca commit 232f987
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DROP TABLE IF EXISTS tx_filters;
DROP INDEX IF EXISTS tx_filters_address_idx;
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
CREATE TABLE tx_filters
CREATE TABLE IF NOT EXISTS tx_filters
(
address bytea NOT NULL,
token INTEGER NOT NULL,
tx_hash bytea NOT NULL,
PRIMARY KEY (address, token, tx_hash)
);
CREATE INDEX IF NOT EXISTS tx_filters_address_idx ON "tx_filters" USING hash (address);

0 comments on commit 232f987

Please sign in to comment.