You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/source/configuring.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1084,22 +1084,22 @@ development:
1084
1084
timeout: 5000
1085
1085
```
1086
1086
1087
-
Since the connection pooling is handled inside of Active Record by default, all application servers (Thin, mongrel, Unicorn etc.) should behave the same. Initially, the database connection pool is empty and it will create additional connections as the demand for them increases, until it reaches the connection pool limit.
1087
+
Since the connection pooling is handled inside of Active Record by default, all application servers (Thin, mongrel, Unicorn etc.) should behave the same. The database connection pool is initially empty. As demand for connections increases it will create them until it reaches the connection pool limit.
1088
1088
1089
-
Any one request will check out a connection the first time it requires access to the database, after which it will check the connection back in, at the end of the request, meaning that the additional connection slot will be available again for the next request in the queue.
1089
+
Any one request will check out a connection the first time it requires access to the database. At the end of the request it will check the connection back in. This means that the additional connection slot will be available again for the next request in the queue.
1090
1090
1091
1091
If you try to use more connections than are available, Active Record will block
1092
-
and wait for a connection from the pool. When it cannot get connection, a timeout
1093
-
error similar to given below will be thrown.
1092
+
you and wait for a connection from the pool. If it cannot get a connection, a
1093
+
timeout error similar to that given below will be thrown.
1094
1094
1095
1095
```ruby
1096
1096
ActiveRecord::ConnectionTimeoutError - could not obtain a database connection within 5 seconds. The max pool size is currently 5; consider increasing it:
1097
1097
```
1098
1098
1099
-
If you get the above error, you might want to increase the size of connection
1100
-
pool by incrementing the `pool` option in `database.yml`
1099
+
If you get the above error, you might want to increase the size of the
1100
+
connection pool by incrementing the `pool` option in `database.yml`
1101
1101
1102
-
NOTE. If you are running in a multi-threaded environment, there could be a chance that several threads may be accessing multiple connections simultaneously. So depending on your current request load, you could very well have multiple threads contending for a limited amount of connections.
1102
+
NOTE. If you are running in a multi-threaded environment, there could be a chance that several threads may be accessing multiple connections simultaneously. So depending on your current request load, you could very well have multiple threads contending for a limited number of connections.
0 commit comments