how to find source of error on heroku? - ruby-on-rails

I have a Rails app on Heroku that I don't visit very often. When I visited it today, I got the standard Rails error message
We're sorry, but something went wrong.
I ran heroku logs to try to figure out what the problem was, but the logs don't say anything that would explain the error (to me).
What do you do in this situation?
2013-11-04T22:52:07.048102+00:00 app[web.1]: Processing by PostsController#index as HTML
2013-11-04T22:52:07.132891+00:00 app[web.1]: Rendered posts/_post.html.erb (13.2ms)
2013-11-04T22:52:07.133396+00:00 app[web.1]: Rendered posts/_post.html.erb (0.3ms)
2013-11-04T22:52:07.146333+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.147977+00:00 app[web.1]: Rendered posts/_post.html.erb (0.3ms)
2013-11-04T22:52:07.148485+00:00 app[web.1]: Rendered posts/_post.html.erb (0.4ms)
2013-11-04T22:52:07.151556+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.175334+00:00 app[web.1]: Rendered posts/_post.html.erb (12.5ms)
2013-11-04T22:52:07.183576+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.188420+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.212161+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.212742+00:00 app[web.1]: Rendered posts/_post.html.erb (0.4ms)
2013-11-04T22:52:07.226959+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.246992+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.243411+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.296351+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.297843+00:00 app[web.1]: Rendered shared/_analytics.html.erb (0.0ms)
2013-11-04T22:52:07.308385+00:00 app[web.1]: Rendered posts/_total.html.erb (0.7ms)
2013-11-04T22:52:07.399532+00:00 app[web.1]: Rendered posts/index.html.erb within layouts/application (311.6ms)
2013-11-04T22:52:07.399720+00:00 app[web.1]: Completed in 351ms
2013-11-04T22:52:07.398061+00:00 app[web.1]: Rendered shared/_stats.html.erb (44.1ms)
2013-11-04T22:52:07.429348+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.1ms)
2013-11-04T22:52:07.429836+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_session.text.erb (0.3ms)
2013-11-04T22:52:07.428209+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_request.text.erb (1.3ms)
2013-11-04T22:52:07.430004+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.0ms)
2013-11-04T22:52:07.737679+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_backtrace.text.erb (0.2ms)
2013-11-04T22:52:07.733934+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_environment.text.erb (303.5ms)
2013-11-04T22:52:07.734305+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.1ms)
2013-11-04T22:52:07.741156+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb (314.7ms)
2013-11-04T22:52:07.740339+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.1ms)
2013-11-04T22:52:07.842689+00:00 app[web.1]: Sent mail to myemail#gmail.com (67ms)
2013-11-04T22:52:07.842689+00:00 app[web.1]:

Set up a free version of one of the logging add-ons like Papertrail. Try them all out and see which you prefer.
If you want an E-mail, I don't think you can configure an error E-mail through Heroku per se, but you can use the free version of the Sendgrid add-on to send error information to yourself in a rescue block or rescue_from Exception, :with => :email_error_info in your ApplicationController.

Related

Every time I add an image_tag to a page, the index is being rendered in the background (Rails 5)

I have a website with a large codebase.
I noticed that every page that is rendered and have a picture on it, after rendering the page, it makes another request to the index and loading everything in the background.
I have no idea why this happens.
Started GET "/ganenet/main" for ::1 at 2022-08-11 12:41:13 +0300
Processing by OwnersController#main as HTML
GanOwner Load (0.7ms) SELECT "gan_owners".* FROM "gan_owners" WHERE "gan_owners"."id" = $1 ORDER BY "gan_owners"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]]
Rendering owners/main.haml within layouts/application
Gan Load (0.4ms) SELECT "gans".* FROM "gans" WHERE "gans"."gan_owner_id" = $1 [["gan_owner_id", 1]]
Rendered owners/main.haml within layouts/application (6.4ms)
Rendered layouts/_google_tag_manager.haml (1.4ms)
Rendered layouts/_mixpanel.haml (2.2ms)
Rendered layouts/_hotjar.haml (1.9ms)
Rendered shared/_intercom.haml (2.5ms)
Rendered shared/_onesignal.html (0.3ms)
Rendered shared/_staging_env.haml (2.4ms)
Rendered shared/email_subscriptions/_consultant.html (0.4ms)
Rendered shared/modals/_consultant.haml (3.1ms)
Rendered shared/_modal.haml (8.5ms)
Rendered shared/_header.haml (18.4ms)
Rendered shared/owners/_navbar.haml (7.3ms)
Rendered shared/_gtm.haml (2.2ms)
Rendered shared/_modal.haml (11.5ms)
Rendered shared/_modal.haml (4.2ms)
Rendered shared/_modal.haml (57.8ms)
Rendered shared/modals/_ganenet_lekan.haml (83.3ms)
Rendered shared/_modal.haml (0.9ms)
Rendered shared/modals/_thankyou_contact_soon.haml (3.4ms)
Rendered shared/_modal.haml (0.5ms)
Rendered shared/modals/_thankyou_generic.haml (3.0ms)
Rendered shared/modals/_video_modal.haml (3.8ms)
Rendered shared/_footer.haml (3.0ms)
Rendered shared/_accessibility.html (0.2ms)
Completed 200 OK in 254ms (Views: 246.9ms | ActiveRecord: 1.1ms)
This is when the page I want is loaded, which is fine. But right after this, I get more requests which come out of nowhere.
Started GET "/dist/instantsearch.min.js.map" for ::1 at 2022-08-11 12:41:13 +0300
Started GET "/" for ::1 at 2022-08-11 12:41:13 +0300
Processing by HomeController#index as HTML
Started GET "/" for ::1 at 2022-08-11 12:41:13 +0300
Processing by HomeController#index as HTML
And it loads a bunch of stuff from the database which are related to the homepage (which is HomeController#index.
I noticed that the index loads only on pages that have at least one image on it.
I couldn't find any info on this issue so far.
Would be happy to hear from experienced folks with this issue.

Is rendering more partials reduce performance in Rails web application?

I have created Rails(version - 5.0.0.1) application. I have used partials for reduce the repeated code. I have completed the feature, after saw the console log for particular request there was at least 100 partials rendered and it may goes upto 200. Is this affect the application performance ?
Following is console log when processing request.
Started GET “/******/98747259/edit" for 127.0.0.1 at 2017-04-19 14:51:50 +0530
Processing by *********Controller#edit as HTML
Parameters: {}
Rendering triggers/edit.html.erb within layouts/application
Rendered layouts/_navigation_menu.html.erb (18.8ms)
Rendered layouts/_flash_errors.html.erb (1.5ms)
Rendered triggers/trigger/_campaign.html.erb (5.2ms)
Rendered triggers/trigger/_campaign.html.erb (2.3ms)
Rendered triggers/trigger/_campaign.html.erb (2.1ms)
Rendered triggers/trigger/_campaign.html.erb (1.7ms)
Rendered triggers/trigger/_campaign.html.erb (2.0ms)
Rendered triggers/trigger/_campaign.html.erb (2.3ms)
Rendered triggers/trigger/_campaign.html.erb (1.8ms)
Rendered triggers/trigger/_campaign.html.erb (94.5ms)
Rendered triggers/trigger/_campaign.html.erb (2.2ms)
Rendered triggers/trigger/_campaign.html.erb (2.5ms)
Rendered triggers/actions/_add_tag_elements.html.erb (1.5ms)
Rendered triggers/actions/_add_tag_elements.html.erb (0.8ms)
Rendered triggers/actions/_add_tag_elements.html.erb (0.8ms)
Rendered triggers/actions/_tag.html.erb (15.9ms)
Rendered triggers/actions/_add_tag_elements.html.erb (0.7ms)
Rendered triggers/actions/_add_tag_elements.html.erb (0.8ms)
Rendered triggers/actions/_add_tag_elements.html.erb (0.8ms)
Rendered triggers/actions/_tag.html.erb (9.2ms)
Rendered triggers/actions/_add_campaign_elements.html.erb (2.4ms)
Rendered triggers/actions/_add_campaign_elements.html.erb (1.8ms)
Rendered triggers/actions/_campaign.html.erb (103.3ms)
Rendered triggers/actions/_add_campaign_elements.html.erb (2.0ms)
Rendered triggers/actions/_add_campaign_elements.html.erb (1.7ms)
Rendered triggers/actions/_campaign.html.erb (7.7ms)
Rendered triggers/actions/_add_multiple_campaigns_elements.html.erb (8.3ms)
Rendered triggers/actions/_add_multiple_campaigns_elements.html.erb (76.3ms)
Rendered triggers/actions/_multiple_campaigns.html.erb (91.8ms)
Rendered triggers/actions/_add_campaign_elements.html.erb (1.7ms)
Rendered triggers/actions/_add_campaign_elements.html.erb (3.0ms)
Rendered triggers/actions/_campaign.html.erb (8.7ms)
Rendered triggers/actions/_add_email_elements.html.erb (6.8ms)
Rendered triggers/actions/_add_email_elements.html.erb (2.1ms)
Rendered triggers/actions/_add_email_elements.html.erb (2.1ms)
Rendered triggers/actions/_email.html.erb (18.4ms)
Rendered triggers/actions/_add_custom_field_elements.html.erb (1.2ms)
Rendered triggers/actions/_custom_field.html.erb (4.3ms)
Rendered triggers/actions/_delete_subscriber.html.erb (1.2ms)
Rendered triggers/actions/_add_unsubscribe_elements.html.erb (1.4ms)
Rendered triggers/actions/_add_unsubscribe_elements.html.erb (0.6ms)
Rendered triggers/actions/_unsubscribe.html.erb (12.4ms)
Rendered triggers/actions/_modal_for_mail.html.erb (1.0ms)
Rendered triggers/_add_new_action.html.erb (1.4ms)
Rendered triggers/actions/_unsubscribe_from_campaign.html.erb (3.2ms)
Rendered triggers/perform_actions/_apply_or_remove_tags.html.erb (1.0ms)
Rendered triggers/perform_actions/_campaign.html.erb (0.9ms)
Rendered triggers/perform_actions/_move_from_one_campaign_to_another.html.erb (1.4ms)
Rendered triggers/perform_actions/_send_manual_mail.html.erb (2.5ms)
Rendered triggers/perform_actions/_set_custom_field.html.erb (0.9ms)
Rendered triggers/perform_actions/_record_an_event.html.erb (5.1ms)
Rendered layouts/_flash_errors.html.erb (0.6ms)
Rendered triggers/perform_actions/_unsubscribe.html.erb (1.4ms)
Rendered triggers/perform_actions/_send_notification_mail.html.erb (5.7ms)
Rendered triggers/trigger_details/_campaign.html.erb (2.2ms)
Rendered triggers/trigger_details/_apply_or_remove_tags.html.erb (1.2ms)
Rendered triggers/trigger_details/_form.html.erb (4.3ms)
Rendered triggers/trigger_details/_mail.html.erb (4.4ms)
Rendered triggers/trigger_details/_clicked_link.html.erb (1.0ms)
Rendered triggers/trigger_details/_visited_page.html.erb (0.9ms)
Rendered triggers/trigger_details/_update_custom_field.html.erb (0.8ms)
Rendered triggers/trigger/_tag.html.erb (1.0ms)
Rendered triggers/trigger/_campaign.html.erb (1.7ms)
Rendered triggers/trigger/_form.html.erb (2.1ms)
Rendered triggers/trigger/_link.html.erb (0.9ms)
Rendered triggers/trigger/_page.html.erb (0.8ms)
Rendered triggers/trigger/_email.html.erb (2.8ms)
Rendered triggers/trigger/_custom_field.html.erb (1.1ms)
Rendered triggers/actions/_add_tag_elements.html.erb (0.6ms)
Rendered triggers/actions/_tag.html.erb (2.7ms)
Rendered triggers/actions/_add_campaign_elements.html.erb (1.7ms)
Rendered triggers/actions/_campaign.html.erb (3.6ms)
Rendered triggers/actions/_add_multiple_campaigns_elements.html.erb (2.1ms)
Rendered triggers/actions/_multiple_campaigns.html.erb (4.1ms)
Rendered triggers/actions/_add_email_elements.html.erb (28.6ms)
Rendered triggers/actions/_email.html.erb (30.7ms)
Rendered triggers/actions/_add_custom_field_elements.html.erb (0.8ms)
Rendered triggers/actions/_custom_field.html.erb (3.2ms)
Rendered triggers/actions/_add_unsubscribe_elements.html.erb (0.7ms)
Rendered triggers/actions/_unsubscribe.html.erb (2.7ms)
Rendered triggers/actions/_notification_email.html.erb (0.9ms)
Rendered triggers/actions/_delete_subscriber.html.erb (0.5ms)
Rendered triggers/actions/_add_tag_elements.html.erb (0.6ms)
Rendered triggers/actions/_add_campaign_elements.html.erb (1.7ms)
Rendered triggers/actions/_add_multiple_campaigns_elements.html.erb (2.0ms)
Rendered triggers/actions/_add_email_elements.html.erb (2.4ms)
Rendered triggers/actions/_add_custom_field_elements.html.erb (0.8ms)
Rendered triggers/actions/_add_unsubscribe_elements.html.erb (0.7ms)
Rendered triggers/actions/_notification_email.html.erb (0.4ms)
Rendered triggers/_form.html.erb (804.3ms)
Rendered triggers/edit.html.erb within layouts/application (825.7ms)
Completed 200 OK in 1610ms (Views: 1562.3ms | ActiveRecord: 16.1ms)
It may slow down your application as rendering a partial takes some time, it may be very less time but it does take some time as rendering a partial invokes a render method so there is a second method call. It is totally on you, how you want the app's performance as it does reduce duplicate code and enhance code readibility

Ruby on Rails app error in heroku deployment

The application runs perfectly in development(local server) but not in production.
I have the following in heroku logs(I have edited the logs to be easier to read, I just included what I think are the errors):
2015-05-15T23:58:43.894626+00:00 app[web.1]: Rendered layouts/_header.html.erb (8.5ms)
2015-05-15T23:58:43.885011+00:00 app[web.1]: Rendered movies/index.html.erb within layouts/application (17.5ms)
2015-05-15T23:58:43.896788+00:00 app[web.1]: ActionView::Template::Error (undefined method `scard' for nil:NilClass):
2015-05-15T23:58:43.896785+00:00 app[web.1]:
2015-05-15T23:58:43.896790+00:00 app[web.1]: 19: <%if signed_in?%>
2015-05-15T23:58:43.896791+00:00 app[web.1]: 20: <li>
2015-05-15T23:58:43.896794+00:00 app[web.1]: 22: <i class="fi-shopping-cart"></i> My Cart (<span class="cart-count"><%=current_user.cart_count%></span>)
2015-05-15T23:58:43.896793+00:00 app[web.1]: 21: <%= link_to cart_path do%>
2015-05-15T23:58:43.896796+00:00 app[web.1]: 23: <%end%>
2015-05-15T23:58:43.896797+00:00 app[web.1]: 24: </li>
2015-05-15T23:58:43.896799+00:00 app[web.1]: 25: <li><%=link_to current_user.email, edit_user_registration_path%></li>
2015-05-15T23:58:43.896801+00:00 app[web.1]: app/models/user.rb:36:in `cart_count'
2015-05-15T23:58:33.939033+00:00 app[web.1]: Completed 500 Internal Server Error in 3ms
2015-05-15T23:58:33.933343+00:00 app[web.1]: Started GET "/movies/2" for 160.9.1.112 at 2015-05-15 23:58:33 +0000
2015-05-15T23:58:33.935944+00:00 app[web.1]: Processing by MoviesController#show as HTML
2015-05-15T23:58:33.935966+00:00 app[web.1]: Parameters: {"id"=>"2"}
2015-05-15T23:58:33.938157+00:00 app[web.1]: Movie Load (1.3ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = $1 LIMIT 1 [["id", 2]]
2015-05-15T23:58:33.939854+00:00 app[web.1]:
2015-05-15T23:58:33.939856+00:00 app[web.1]: NoMethodError (undefined method `sismember' for nil:NilClass):
2015-05-15T23:58:33.939858+00:00 app[web.1]: app/models/movie.rb:20:in `cart_action'
2015-05-15T23:58:33.939859+00:00 app[web.1]: app/controllers/movies_controller.rb:9:in `show'
2015-05-15T23:58:28.575297+00:00 app[web.1]: Started GET "/movies/1" for 160.9.1.112 at 2015-05-15 23:58:28 +0000
2015-05-15T23:58:28.581745+00:00 app[web.1]: Parameters: {"id"=>"1"}
2015-05-15T23:58:28.635038+00:00 app[web.1]: Completed 500 Internal Server Error in 53ms
2015-05-15T23:58:28.581412+00:00 app[web.1]: Processing by MoviesController#show as HTML
2015-05-15T23:58:28.618562+00:00 app[web.1]: Movie Load (1.6ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = $1 LIMIT 1 [["id", 1]]
2015-05-15T23:58:28.636023+00:00 app[web.1]:
2015-05-15T23:58:28.636027+00:00 app[web.1]: NoMethodError (undefined method `sismember' for nil:NilClass):
2015-05-15T23:58:28.636029+00:00 app[web.1]: app/models/movie.rb:20:in `cart_action'
2015-05-15T23:58:28.636031+00:00 app[web.1]: app/controllers/movies_controller.rb:9:in `show'
movie.rb:
class Movie < ActiveRecord::Base
has_many :purchases
has_many :buyers, through: :purchases
before_save :embed_video_url
def poster
"http://ia.media-imdb.com/images/M/#{poster_url}"
end
def imdb
"http://www.imdb.com/title/#{imdb_id}/"
end
def embed_video_url
self.video_url = "//www.youtube.com/embed/#{video_url.split('v=')[1].split('&list')[0]}"
end
def cart_action(current_user_id)
if $redis.sismember "cart#{current_user_id}", id
"Remove from"
else
"Add to"
end
end
end
I followed the official guide from heroku "https://devcenter.heroku.com/articles/redistogo"
Even the test run ok but cant run in production
I know it's exhausting to check all these line so I will appreciate any help
PS: In development/local server run perfect
The error is appearing in the logs. See carefully.
NoMethod Error (undefined method sismember' for nil:NilClass): 2015-05 15T20:59:10.873219+00:00 app[web.1]: app/models/movie.rb:20:incart_action'

rails_admin keeps loading assets in a loop in heroku

I have a rails 4 app deployed on heroku which displays the following error:
2014-06-30T21:41:49.904494+00:00 app[web.1]: CACHE (0.0ms) SELECT COUNT(*) FROM "profiles"
2014-06-30T21:41:49.909372+00:00 app[web.1]: CACHE (0.0ms) SELECT COUNT(*) FROM "profiles"
2014-06-30T21:41:49.909380+00:00 app[web.1]: CACHE (0.0ms) SELECT COUNT(*) FROM "profiles"
2014-06-30T21:41:49.914865+00:00 app[web.1]: Rendered vendor/bundle/ruby/2.0.0/gems/rails_admin-0.6.2/app/views/rails_admin/main/_form_filtering_multiselect.html.haml (11.8ms)
2014-06-30T21:41:49.914875+00:00 app[web.1]: Rendered vendor/bundle/ruby/2.0.0/gems/rails_admin-0.6.2/app/views/rails_admin/main/_form_filtering_multiselect.html.haml (11.8ms)
2014-06-30T21:41:49.677490+00:00 app[web.1]: Rendered vendor/bundle/ruby/2.0.0/gems/rails_admin-0.6.2/app/views/rails_admin/main/_form_field.html.haml (4.4ms)
2014-06-30T21:41:49.888037+00:00 app[web.1]: Rendered vendor/bundle/ruby/2.0.0/gems/rails_admin-0.6.2/app/views/rails_admin/main/_form_field.html.haml (2.7ms)
2014-06-30T21:41:50.330339+00:00 app[web.1]: Rendered vendor/bundle/ruby/2.0.0/gems/rails_admin-0.6.2/app/views/rails_admin/main/_form_field.html.haml (6.1ms)
2014-06-30T21:41:50.330358+00:00 app[web.1]: Rendered vendor/bundle/ruby/2.0.0/gems/rails_admin-0.6.2/app/views/rails_admin/main/_form_field.html.haml (6.1ms)
This happens with every asset file rails_admin needs leading to an infinite loop and:
2014-06-30T21:41:38.404015+00:00 heroku[web.1]: Process running mem=2540M(496.1%)
2014-06-30T21:41:38.404374+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
I've tried using multiple dynos and applying somo configurations in application.rb
# config/application.rb
config.assets.precompile += ['rails_admin/rails_admin.css', 'rails_admin/rails_admin.js']
config.assets.initialize_on_precompile = false

rails, when rendering a partial, each render outputs in the log. Is this a performance hit?

For example if looping over #feed, which renders a partial, you see the following in the log:
Rendered feeds/_feed_item.html.erb (2.5ms)
Rendered feeds/_feed_item.html.erb (1.4ms)
Rendered feeds/_feed_item.html.erb (1.3ms)
Rendered feeds/_feed_item.html.erb (1.3ms)
Rendered feeds/_feed_item.html.erb (1.4ms)
Rendered feeds/_feed_item.html.erb (1.3ms)
Rendered feeds/_feed_item.html.erb (1.3ms)
Rendered feeds/_feed_item.html.erb (1.5ms)
Rendered feeds/_feed_item.html.erb (1.5ms)
Rendered feeds/_feed_item.html.erb (1.3ms)
Rendered feeds/_feed_item.html.erb (1.5ms)
Rendered feeds/_feed_item.html.erb (1.4ms)
Rendered feeds/_feed_item.html.erb (1.3ms)
Rendered feeds/_feed_item.html.erb (1.4ms)
Rendered feeds/_feed_item.html.erb (1.3ms)
Rendered feeds/_feed_item.html.erb (1.3ms)
Rendered feeds/_feed_item.html.erb (1.3ms)
Rendered feeds/_feed_item.html.erb (1.4ms)
Rendered feeds/_feed_item.html.erb (1.3ms)
Rendered feeds/_feed_item.html.erb (1.3ms)
Rendered feeds/_feed_item.html.erb (1.3ms)
Rendered feeds/_feed_item.html.erb (1.4ms)
Rendered feeds/_feed_item.html.erb (1.6ms)
Rendered feeds/_feed_item.html.erb (1.3ms)
Rendered feeds/_feed_item.html.erb (1.5ms)
Rendered feeds/_feed_item.html.erb (1.4ms)
Rendered feeds/_feed_item.html.erb (2.8ms)
Rendered feeds/_feed_item.html.erb (1.5ms)
Rendered feeds/_feed_item.html.erb (2.5ms)
Rendered feeds/_feed_item.html.erb (1.5ms)
Rendered feeds/_feed_item.html.erb (1.8ms)
Rendered feeds/_feed_item.html.erb (1.5ms)
Rendered feeds/_feed_item.html.erb (1.5ms)
Rendered feeds/_feed_item.html.erb (1.4ms)
Rendered feeds/_feed_item.html.erb (1.6ms)
Rendered feeds/_feed_item.html.erb (1.3ms)
Rendered feeds/_feed_item.html.erb (1.5ms)
Rendered feeds/_feed_item.html.erb (1.2ms)
Rendered feeds/_feed_item.html.erb (1.4ms)
Rendered feeds/_feed_item.html.erb (1.5ms)
Rendered feeds/_feed_item.html.erb (1.6ms)
Is that a performance hit? Is there a better way to handle this so it doesn't output every time?
Thanks
Yes, it's a performance hit. Render a collection.

Resources