Displaying 1 result from an estimated 1 matches for "3ccb2590".
Did you mean:
37cb259c
2006 Jul 02
1
ActiveRecord''s has_many, allways fetched from db?
Hi all,
say I have a
class Container
has_many :items
end
and
class Item
belongs_to :container
end
Now if I fetch a container from the db
cont = Container.find :first
and then call
cont.items
1000 times, does this result in 1000 db queries(for the items of the
container)?
Thanks
Clemens
--
Posted via http://www.ruby-forum.com/.