title: ConnectionPool ActiveRecord questions
body: <p>I'm building an advanced RoR application with several instances of database connections running concurrently. However I'm still looking for answers for the following,</p>
  
  <ol>
  <li><p>Does the connection handler automatically add a connection into the pool once its established? Like the following way,</p>
  
  <pre><code>ActiveRecord::Base.establish_connection(spec)
  </code></pre></li>
  <li><p>When would it disconnect the active connection if there's no activity for a while? Or should it be manually disconnected. </p></li>
  <li><p>Are there any other alternatives to disconnecting the database connection like the following,</p>
  
  <pre><code>ActiveRecord::Base.remove_connection(connection_object)
  </code></pre></li>
  <li><p>How can I increase the pool size which could be for different database adapters.</p></li>
  </ol>
  
  <p>Looking forward to some tips.</p>