add index for blob table so size summaries are faster

This commit is contained in:
Victor Shyba 2021-11-03 15:13:37 -03:00 committed by Jack Robison
parent 1ff914a6f4
commit 0d810d92ca

View file

@ -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):