These are chat archives for ManageIQ/manageiq/performance

15th
Feb 2016
Matthew Draper
@matthewd
Feb 15 2016 15:05
Keenan Brock
@kbrock
Feb 15 2016 15:29
@matthewd thanks

I want this to work:

Post.limit(10).each do |post|
  post.comments.each do |comment|
    comment.body
  end
end

2 queries...

Matthew Draper
@matthewd
Feb 15 2016 15:30
Patches welcome ;)
Keenan Brock
@kbrock
Feb 15 2016 15:30
yea
think merb had it
Matthew Draper
@matthewd
Feb 15 2016 15:30
DataMapper did, yeah
Keenan Brock
@kbrock
Feb 15 2016 15:30
aah - yea
I want Post.where(:comments => {:body => 'hello'}) more :)