From 0b51675b38d04bfedf36b5e07377721cab285c93 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Sun, 25 Dec 2022 11:17:08 -0600 Subject: [PATCH] improvement: change suggestion and default for max sqlite DB readers --- config.toml | 5 +++-- src/config.rs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config.toml b/config.toml index 87dd880..6bcf6c7 100644 --- a/config.toml +++ b/config.toml @@ -36,8 +36,9 @@ data_directory = "." # Minimum number of SQLite reader connections #min_conn = 4 -# Maximum number of SQLite reader connections -#max_conn = 128 +# Maximum number of SQLite reader connections. Recommend setting this +# to approx the number of cores. +#max_conn = 8 [network] # Bind to this network address diff --git a/src/config.rs b/src/config.rs index 79ad94d..99e4377 100644 --- a/src/config.rs +++ b/src/config.rs @@ -207,7 +207,7 @@ impl Default for Settings { data_directory: ".".to_owned(), in_memory: false, min_conn: 4, - max_conn: 128, + max_conn: 8, }, network: Network { port: 8080,