Answer the question
In order to leave comments, you need to log in
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
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?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question