Sunday, November 23, 2008

Connection Pools

With the upcoming thread-safety of Rails comes the necessity of database connection pools. While less a feature and more a hidden implementation detail, you do have the ability to adjust the max size of these new pools (default is 5). In your database.yml configuration file just set the pool key:
development:
adapter: mysql
username: root
database: myapp_dev
pool: 10

No comments: