Browse Source

Attempt to fix connection pooling issues

Andrew Swistak 5 năm trước cách đây
mục cha
commit
da7e926f6d
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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) }