On Thu, Dec 9, 2010 at 12:41 AM, Victor Cisneiros <li...@ruby-forum.com> wrote:
> replacing this
>
> <td><%= link_to 'Show', book %></td>
> <td><%= link_to 'Edit', edit_book_path(book) %></td>
> <td><%= link_to 'Destroy', book, :confirm => 'Are you sure?', :method =>
> :delete %></td>
>
> with this
>
> <td><a href="/books/<%= book.id %>">Show</a></td>
> <td><a href="/books/<%= book.id %>/edit">Editar</a></td>
> <td><a href="/books/<%= book.id %>" data-confirm="Are your sure?"
> data-method="delete" rel="nofollow">Deletar</a></td>
>
> 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?

>
> another option would be using a fragment cache, but that's not always
> possible
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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-t...@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to