diff options
author | Teddy Wing | 2018-11-13 05:19:35 +0100 |
---|---|---|
committer | Teddy Wing | 2018-11-13 05:19:35 +0100 |
commit | b02f3aac30557167f8f81c1294094426c34a2c35 (patch) | |
tree | bd2fec5c5784f3a3eb7316677569bd35e60ee655 | |
parent | 0546b26f90d17543456d3abe25f94c2e3c7b949f (diff) | |
download | dome-key-web-b02f3aac30557167f8f81c1294094426c34a2c35.tar.bz2 |
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.
-rw-r--r-- | license-generator/src/database.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<mysql::Pool> { 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) } |