views:

16

answers:

1

Error "ActiveRecord::ConnectionTimeoutError - could not obtain a database connection within 5 seconds. The max pool size is currently 5; consider increasing it.:"

How do I increase the max pool size ?

DB CONNECTION

DB_CONN = ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :dbfile => DB_FILE)

+1  A: 
config/database.yml
pool: 8 (default is 5)

Read more

zengr
I don't have a config/database.ymlDB_CONN = ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :dbfile => DB_FILE). This is it. I tried adding pool: 25 to it, but it did not work.
Prakash Raman
My mistake, it worked.I just added :pool => [int]Thanks.
Prakash Raman