#22 Eager Loading

One way to improve performance is to cut down on the number of SQL queries. You can do this through eager loading. Learn all about it in this episode!
Task.find(:all, :include => :projects)
Task.find(:all, :include => [:projects, :comments])

你可能感兴趣的:(java,sql,performance)