Using Sidekiq concurrency for default db pool value (#26488)
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user