Ruby on Rails Monday, December 27, 2010

On Mon, Dec 27, 2010 at 11:10 AM, Xavier Noria <fxn@hashref.com> wrote:

> In production mode by default you get the class defined once per
> process, so that costly initialization will occur once per process. A
> process will typically serve lots of requests, and the process pool is
> managed by the software that runs your application, eg Phusion
> Passenger.

Ah, depending on the preloading strategy of the production server this
could be even once per application instance. But unless you use
something weird like CGI, by default the class-level code will not run
in each request in production mode.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment