From 9f70f973ce4a886ff1ae0334d164ec6276d0f9a5 Mon Sep 17 00:00:00 2001 From: Nulo Date: Sun, 23 Apr 2023 21:40:18 -0300 Subject: [PATCH] =?UTF-8?q?rust:=20m=C3=A1s=20parametros=20de=20optimizaci?= =?UTF-8?q?=C3=B3n=20de=20sqlite?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rust/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust/src/main.rs b/rust/src/main.rs index 1ceb148..2ebfff0 100644 --- a/rust/src/main.rs +++ b/rust/src/main.rs @@ -67,6 +67,8 @@ fn make_conn() -> Result> { let conn = Connection::open(db_path())?; conn.pragma_update(None, "journal_mode", "OFF")?; conn.pragma_update(None, "synchronous", 0)?; + conn.pragma_update(None, "cache_size", 1000000)?; + conn.pragma_update(None, "locking_mode", "EXCLUSIVE")?; Ok(conn) }