Create index on blob(last_used)

This commit is contained in:
Matt Joiner 2021-01-19 16:55:45 +11:00
parent 3e34763678
commit c424a2510e
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,8 @@ func InitSchema(conn conn, pageSize int, triggers bool) error {
key text primary key,
value
);
create index if not exists blob_last_used on blob(last_used);
-- While sqlite *seems* to be faster to get sum(length(data)) instead of
-- sum(length(cast(data as blob))), it may still require a large table scan at start-up or with a