added improved effective_amount index covering release_time

This commit is contained in:
Lex Berezhny 2019-07-18 23:24:00 -04:00
parent 29a87c850c
commit 8f45618cd0

View file

@ -97,7 +97,7 @@ class SQLDB:
create index if not exists claim_signature_valid_idx on claim (signature_valid); create index if not exists claim_signature_valid_idx on claim (signature_valid);
create unique index if not exists claim_effective_amount_idx on claim (effective_amount, claim_hash); create unique index if not exists claim_effective_amount_idx on claim (effective_amount, claim_hash, release_time);
create unique index if not exists claim_release_time_idx on claim (release_time, claim_hash); create unique index if not exists claim_release_time_idx on claim (release_time, claim_hash);
create unique index if not exists claim_trending_global_mixed_idx on claim (trending_global, trending_mixed, claim_hash); create unique index if not exists claim_trending_global_mixed_idx on claim (trending_global, trending_mixed, claim_hash);
""" """