I have Parent model and Child model.
Parent has many children.
In index.html.erb, I'm showing the number of records that each parent has.
But I bet it makes laggy when many people are accessing to this page at the same time.
<% @parents.each do |parent| %>
<td><%= parent.child.count %></td>
<% end %>
Should I create the column called 'count' in Parent table so that it won't need to calculate everytime it renders?