add index for claim_type and release_time

This commit is contained in:
Lex Berezhny 2020-01-18 22:11:44 -05:00 committed by Alex Grintsvayg
parent 1ac03e2f1d
commit 9d79c52d20
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5

View file

@ -138,6 +138,8 @@ class SQLDB:
create unique index if not exists filter_fee_amount_order_release_time_idx on claim (fee_amount, release_time, claim_hash);
create unique index if not exists claim_type_trending_idx on claim (claim_type, trending_global, trending_mixed, claim_hash);
create unique index if not exists claim_type_release_idx on claim (claim_type, release_time, claim_hash);
create unique index if not exists claim_type_effective_amount_idx on claim (claim_type, effective_amount, claim_hash);
-- TODO: verify that all indexes below are used
create index if not exists claim_height_normalized_idx on claim (height, normalized asc);