Skip to content

Commit cdf6709

Browse files
committed
Lower number of DB connections available per dyno in production
1 parent 9e4fae7 commit cdf6709

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl App {
5353
.helper_threads(if config.env == ::Env::Production {3} else {1})
5454
.build();
5555
let diesel_db_config = r2d2::Config::builder()
56-
.pool_size(if config.env == ::Env::Production {50} else {1})
56+
.pool_size(if config.env == ::Env::Production {30} else {1})
5757
.min_idle(if config.env == ::Env::Production {Some(5)} else {None})
5858
.helper_threads(if config.env == ::Env::Production {3} else {1})
5959
.build();

0 commit comments

Comments
 (0)