diff options
author | Kornel <kornel@geekhood.net> | 2019-08-28 21:43:21 +0100 |
---|---|---|
committer | Kornel <kornel@geekhood.net> | 2019-08-28 21:43:21 +0100 |
commit | 112a32c204b8859e7ef7a47379ae6b2dbfd5086b (patch) | |
tree | 69a18c149c2713fe5214a6b2765fa7ebddcfc04e /crate_db/src/lib_crate_db.rs | |
parent | 783e2a5218ce0254cb4753e59fc0d0447cda1189 (diff) |
Safer cache
Diffstat (limited to 'crate_db/src/lib_crate_db.rs')
-rw-r--r-- | crate_db/src/lib_crate_db.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crate_db/src/lib_crate_db.rs b/crate_db/src/lib_crate_db.rs index 4aeda5b..36b9dd5 100644 --- a/crate_db/src/lib_crate_db.rs +++ b/crate_db/src/lib_crate_db.rs @@ -104,8 +104,7 @@ impl CrateDb { db.execute_batch(" PRAGMA cache_size = 500000; PRAGMA threads = 4; - PRAGMA synchronous = 0; - PRAGMA journal_mode = TRUNCATE;")?; + PRAGMA synchronous = 0;")?; Ok(db) } |