2010-10-19 16 views
32

मुझे त्रुटि मिलती है:ActiveRecord में अधिकतम पूल आकार कैसे बढ़ाएं?

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

मैं अधिकतम पूल आकार कैसे बढ़ा सकता हूं?

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

उत्तर

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

पढ़ें more

+1

मेरे गलती है, यह काम किया। मैंने अभी जोड़ा: पूल => [int] धन्यवाद। –

+0

@PrakashRaman मैं आपकी टिप्पणियों को समझ नहीं पा रहा हूं। आपको 'पूल => [int] 'का उपयोग कहां करना था? ऐसा लगता है रूबी कोड वाईएएमएल नहीं है। – lulalala

संबंधित मुद्दे