forked from LBRYCommunity/lbry-sdk
add index for claim_type and release_time
This commit is contained in:
parent
1ac03e2f1d
commit
9d79c52d20
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue