Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Increase database connection pool size

Josh Pigford058830591f6a
diff --git a/config/database.yml b/config/database.yml
index 0443207d..81e0248d 100644
--- a/config/database.yml
+++ b/config/database.yml
@@ -2,7 +2,7 @@ default: &default
adapter: postgresql
encoding: unicode
# 3 connections for Puma, 8 for GoodJob (in async mode, the default for self-hosters) = 11 connections
- pool: <%= ENV.fetch("DB_POOL_SIZE") { 13 } %>
+ pool: <%= ENV.fetch("DB_POOL_SIZE") { 16 } %>
host: <%= ENV.fetch("DB_HOST") { "127.0.0.1" } %>
port: <%= ENV.fetch("DB_PORT") { "5432" } %>
user: <%= ENV.fetch("POSTGRES_USER") { nil } %>