/ Published in: Rails
Improve you web application by eager loading the entire model in one single SQL query. From railscast #22
Expand |
Embed | Plain Text
@tasks = Task.find(:all, :include => [:project, {:comments => :user}])
You need to login to post a comment.
