Rails website start up time

My application is starting/loading very late when hit my website url
in the browser.
Can anybody give some tips to optimize it please.

My application is starting/loading very late when hit my website url

in the browser.

Can anybody give some tips to optimize it please.
1.Optimize your sql queries

  1. Tune the passenger, options like HighPerformance on

  2. Remove the unwanted modules on Apache as per your exact need

Have a look at El 01/10/2011 9:16, loganathan sellappa escribió:

Don’t Right Ruby code in .erb file. If you want then you can write controller.rb file then your application load easy

by
bdeveloper01

Is this on the “production” and/or the “development” server?

Is it the case that the very first click after a new deployment on

production is slow (starting/loading the application) and the next clicks

are much faster (once they are all loaded in production mode)?

Which web server module and which ruby version are you using?

Peter

I’m actually curious about this.

I thought that all erb code and its rails variables are all prepared before the actual erb file gets loaded and its not rendered on the fly?

David

That's the goal to strive for, but if it's all not rendered on the
fly, that means it's static, in which case why bother using ERb? :slight_smile:
Having Ruby code in your ERb files is a necessary evil. The trick is
to do as much as possible of the complicated logic in the other parts.
The things that respond at a very high level to the current "command"
(like "tell the model to make a new one" or "tell the model to tag
this post with this comment") are generally in the controller, while
the logic behind *that* (the actual creation or tagging) is usually in
the model.

-Dave