Started GET "/books" for 189.71.229.236 at 2010-12-08 18:12:11 +0000
Processing by BooksController#index as HTML
Rendered books/index.html.erb within layouts/application (349.2ms)
Completed 200 OK in 359ms (Views: 349.9ms | ActiveRecord: 0.2ms)
359 ms for a 2.9 KB page
What is wrong? I was expecting something like 50-100 requests/sec
I remember trying this before in rails 2.3.8 and it was much faster
What is wrong? I was expecting something like 50-100 requests/sec
I remember trying this before in rails 2.3.8 and it was much faster
Hi, you need to provide much more information? For example, application
mode (i.e. production, development, and so on), operating system, and so
on.
-Conrad
It's running in production mode on a Ubuntu 10.10 system on a Linode 512
(http://www.linode.com)
I reverted back to Rails 2.3.8 and Passenger 2.2.15 and I'm now getting
12.1 requests/sec even though the page is now bigger due to the old
obtrusive destroy links
That's still a low number IMO and it's certainly disappointing to see
Rails getting slower with a new release
raises the requests/sec from 4 to 70, wow just wow, those link_to
helpers are really slow
My application is suffering for performance problems too. How do you
discover that link_to was responsible for that? Did you use a code
profiler? If yes, which one you've used?
I suggest you look at the logs to determine if it's the rendering or the
activerecord that is causing the performance problems in your
application
If your database is too big (hundreds of thousands of rows) your queries
may run slow if they are not using the indexes. Use EXPLAIN + the sql to
verify if the indexes are being used
You may also need to use includes or joins to avoid too many queries.
The infoq link i posted before explain how to do this
If the problem is in the rendering try removing some of the helpers such
as link_to and check if performance improves. You may also use fragment
caching to speed up
I have box prepared to work on rails 2, i installed rails 3 and is very slow so i was blaming rails 3, but then i installed rails 3 in my macbook and is very fast, that means the is something wrong with the environment.