From 9bb99bec5ee850c34276a1ffbce74400f9df3aef Mon Sep 17 00:00:00 2001 From: Nutomic Date: Thu, 28 Sep 2023 15:56:39 +0200 Subject: [PATCH] Increase default database connections (fixes #3394) (#3994) --- config/defaults.hjson | 2 +- crates/utils/src/settings/structs.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/defaults.hjson b/config/defaults.hjson index 9511dc5bf..398549caa 100644 --- a/config/defaults.hjson +++ b/config/defaults.hjson @@ -34,7 +34,7 @@ # Name of the postgres database for lemmy database: "string" # Maximum number of active sql connections - pool_size: 5 + pool_size: 95 } # Settings related to activitypub federation # Pictrs image server configuration. diff --git a/crates/utils/src/settings/structs.rs b/crates/utils/src/settings/structs.rs index 01b968621..213e74c4e 100644 --- a/crates/utils/src/settings/structs.rs +++ b/crates/utils/src/settings/structs.rs @@ -75,7 +75,7 @@ pub struct DatabaseConfig { pub connection: DatabaseConnection, /// Maximum number of active sql connections - #[default(5)] + #[default(95)] pub pool_size: usize, }