From 35905b99ff1f7b13203b7e870c180e97f28fe2fa Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 3 Nov 2021 15:13:37 -0300 Subject: [PATCH] add index for blob table so size summaries are faster --- lbry/extras/daemon/storage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lbry/extras/daemon/storage.py b/lbry/extras/daemon/storage.py index efe791745..64805c04a 100644 --- a/lbry/extras/daemon/storage.py +++ b/lbry/extras/daemon/storage.py @@ -337,6 +337,7 @@ class SQLiteStorage(SQLiteMixin): tcp_port integer, unique (address, udp_port) ); + create index if not exists blob_data on blob(blob_hash, blob_length, is_mine); """ def __init__(self, conf: Config, path, loop=None, time_getter: typing.Optional[typing.Callable[[], float]] = None):