forked from LBRYCommunity/lbry-sdk
add index for blob table so size summaries are faster
This commit is contained in:
parent
806857c066
commit
35905b99ff
1 changed files with 1 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue