Pertanyaan Bagaimana cara meningkatkan ukuran kolam maksimal di ActiveRecord?


Saya mendapatkan kesalahan:

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

Bagaimana cara saya meningkatkan ukuran kolam maksimal?

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

32
2017-10-19 07:45


asal


Jawaban:


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

Baca baca lebih


45
2017-10-19 07:57