diff options
author | Jaehong Kang <sinoru@me.com> | 2023-11-08 22:15:43 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-08 13:15:43 +0000 |
commit | c73d5a6075d6a6ef9cbfc84e34015603d5126982 (patch) | |
tree | 829814a1fa4e5ace65f95dc5bcebe85a7d4b34a2 | |
parent | 13c3e59601683d5a5d57f9f2c0238a9ade0a1ad1 (diff) |
Using Sidekiq concurrency for default db pool value (#26488)
-rw-r--r-- | config/database.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/database.yml b/config/database.yml index b995f23178a..2898415d800 100644 --- a/config/database.yml +++ b/config/database.yml @@ -1,6 +1,6 @@ default: &default adapter: postgresql - pool: <%= ENV["DB_POOL"] || ENV['MAX_THREADS'] || 5 %> + pool: <%= ENV["DB_POOL"] || (if Sidekiq.server? then Sidekiq[:concurrency] else ENV['MAX_THREADS'] end) || 5 %> timeout: 5000 connect_timeout: 15 encoding: unicode |