R
R
Roman Volkov2015-03-08 18:39:21
Ruby on Rails
Roman Volkov, 2015-03-08 18:39:21

How to increase the loading speed of a Rails application?

I ran into this problem: in developer mode on a local machine, the site loads in 2-3 seconds (without a cache), and when transferred to a server in production, the site loads for 15-20 seconds. The problem is not with the server. It is powerful - what can you advise?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sazor, 2015-03-13
@white_wolf_17

There are quite a few factors here. Still, you should not compare the performance on the local machine and on the server so directly. As caution already said , remove all N+1 requests (there is a wonderful bullet gem), cache separate heavy and rarely changing fragments ( guides.rubyonrails.org/caching_with_rails.html#fra... ). By the way, there are a lot of gems that allow you to determine the places where performance drops. But again, it is impossible to determine the problem by such a description, at least give examples of pages on which performance especially sags. And yes, what server are you using?

C
caution, 2015-03-09
@caution

remove n+1 requests ?

E
Eugene Burmakin, 2015-03-08
@Freika

I advise you to look in the logs and look for the cause.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question