From 1ce08e984c014fb0f52b045624292927b9c82bf7 Mon Sep 17 00:00:00 2001 From: Stefan Wrobel Date: Mon, 19 Feb 2018 20:38:05 -0800 Subject: [PATCH] Allow explicitly setting db connection pool size --- config/database.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/database.yml b/config/database.yml index 4f535df..e5a7c86 100644 --- a/config/database.yml +++ b/config/database.yml @@ -19,7 +19,7 @@ default: &default encoding: unicode # For details on connection pooling, see rails configuration guide # http://guides.rubyonrails.org/configuring.html#database-pooling - pool: 20 + pool: <%= ENV["DB_POOL"] || ENV['MAX_WORKER_THREADS'] || 20 %> development: <<: *default