6f932b4790
Pools start out empty and grow as necessary to a maximum size (default is 5, configure size with key 'pool' in your database configuration). If no connections are available, a thread will wait up to a 'wait_timeout' time (default is 5 seconds). Connections are verified and reset when checked out from the pool (usually upon first access to ActiveRecord::Base.connection), and returned back to the pool after each request. If you would like to use connection pools outside of ActionPack, there is an ActiveRecord::Base.connection_pool method that gives you access to the pool, and you can manually checkout/checkin connections, or supply a block to ActiveRecord::Base.connection_pool.with_connection which takes care of the checkout/checkin for you. [#936 state:resolved] |
||
---|---|---|
.. | ||
commands | ||
rails | ||
rails_generator | ||
tasks | ||
code_statistics.rb | ||
commands.rb | ||
console_app.rb | ||
console_sandbox.rb | ||
console_with_helpers.rb | ||
dispatcher.rb | ||
fcgi_handler.rb | ||
initializer.rb | ||
performance_test_help.rb | ||
rails_generator.rb | ||
railties_path.rb | ||
ruby_version_check.rb | ||
rubyprof_ext.rb | ||
source_annotation_extractor.rb | ||
test_help.rb | ||
webrick_server.rb |