From 8f45618cd0b04d4334a3dd65058212f193126753 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Thu, 18 Jul 2019 23:24:00 -0400 Subject: [PATCH] added improved effective_amount index covering release_time --- lbry/lbry/wallet/server/db/writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbry/lbry/wallet/server/db/writer.py b/lbry/lbry/wallet/server/db/writer.py index 31d4dff22..9e7988e51 100644 --- a/lbry/lbry/wallet/server/db/writer.py +++ b/lbry/lbry/wallet/server/db/writer.py @@ -97,7 +97,7 @@ class SQLDB: 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_trending_global_mixed_idx on claim (trending_global, trending_mixed, claim_hash); """