Pārlūkot izejas kodu

Attempt to fix connection pooling issues

Andrew Swistak 5 gadi atpakaļ
vecāks
revīzija
da7e926f6d
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      bot.rb

+ 2 - 1
bot.rb

@@ -34,7 +34,8 @@ ActiveRecord::Base.establish_connection(
   host: db_config.fetch('host') { 'localhost' },
   database: db_config['database'],
   user: db_config['user'],
-  password: db_config['password']
+  password: db_config['password'],
+  pool: 5
 )
 
 Dir['app/**/*.rb'].each { |f| require File.join(File.expand_path(__dir__), f) }