From 5ec7251f6e151dac7f8c383780072d17058d42a1 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 10 May 2020 13:52:07 +1000 Subject: [PATCH] stop using memory for sqlite temp store On large collections this can end up consuming hundreds of megabytes of RAM on operations like a vacuum. --- rslib/src/storage/sqlite.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/rslib/src/storage/sqlite.rs b/rslib/src/storage/sqlite.rs index a7dc1bee6..db113126d 100644 --- a/rslib/src/storage/sqlite.rs +++ b/rslib/src/storage/sqlite.rs @@ -44,7 +44,6 @@ fn open_or_create_collection_db(path: &Path) -> Result { db.pragma_update(None, "cache_size", &(-40 * 1024))?; db.pragma_update(None, "legacy_file_format", &false)?; db.pragma_update(None, "journal_mode", &"wal")?; - db.pragma_update(None, "temp_store", &"memory")?; db.set_prepared_statement_cache_capacity(50);