From e1b1bddea52b48733f36c2f133a7e6df0e50dc85 Mon Sep 17 00:00:00 2001 From: Oleksandr Deundiak Date: Thu, 19 Dec 2024 16:44:14 +0100 Subject: [PATCH] chore(rust): change sqlite configuration --- .../ockam/ockam_node/src/storage/database/sqlx_database.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/implementations/rust/ockam/ockam_node/src/storage/database/sqlx_database.rs b/implementations/rust/ockam/ockam_node/src/storage/database/sqlx_database.rs index 2fa7f525ff1..0f2c8368429 100644 --- a/implementations/rust/ockam/ockam_node/src/storage/database/sqlx_database.rs +++ b/implementations/rust/ockam/ockam_node/src/storage/database/sqlx_database.rs @@ -302,9 +302,11 @@ impl SqlxDatabase { let _ = connection .execute( r#" -PRAGMA synchronous = EXTRA; +PRAGMA synchronous = NORMAL; PRAGMA locking_mode = NORMAL; PRAGMA busy_timeout = 10000; +PRAGMA cache_size = -50000; -- 50 MB +PRAGMA mmap_size = 52428800; -- 50 MB "#, ) .await