From b02f3aac30557167f8f81c1294094426c34a2c35 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 13 Nov 2018 05:19:35 +0100 Subject: database: Reduce connection pool size Read https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing recently, and reducing the pool size seemed like a good idea. --- license-generator/src/database.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'license-generator/src') diff --git a/license-generator/src/database.rs b/license-generator/src/database.rs index a0331c2..478c97e 100644 --- a/license-generator/src/database.rs +++ b/license-generator/src/database.rs @@ -7,7 +7,7 @@ use errors::*; pub fn get_database_pool() -> Result { let connection_url = env::var("DATABASE_URL") .chain_err(|| "DATABASE_URL environment variable not found")?; - let pool = mysql::Pool::new_manual(10, 50, connection_url)?; + let pool = mysql::Pool::new_manual(4, 15, connection_url)?; Ok(pool) } -- cgit v1.2.3