search for: everyrequest

Displaying 1 result from an estimated 1 matches for "everyrequest".

2005 Sep 29
0
RE: Re: scgi_rails opens new a database connection for everyrequest?
It seems to me, by looking at the ActiveRecord code (abstract_adapter.rb) that connections are opened and maintained by default on a per Thread basis. This is because Rails is designed to function either with single thread processes (fcgi) or with a pool of Thread which are being reused. The connections are opened once for each thread. If threads are created on each request, connections will be