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,