Skip to content

Commit

Permalink
run VACUUM after creating archive index SQLite db
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Mar 7, 2023
1 parent 6996c2e commit db17b5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/storage/archive_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ pub(crate) fn create<R: io::Read + io::Seek, P: AsRef<Path>>(

conn.execute("CREATE INDEX idx_files_path ON files (path);", ())?;
conn.execute("END", ())?;
conn.execute("VACUUM", ())?;

Ok(())
}
Expand Down

0 comments on commit db17b5d

Please sign in to comment.