So I have.... class Post < ActiveRecord::Base belongs_to :user end
@posts = Post.find :all, :include=>:user .... but when I look at my logs I see this: Post Load (2.4ms) SELECT * FROM `posts` User Load (0.2ms) SELECT * FROM `users` WHERE (`users`.`id` = 1) I was expecting one combined SQL statement? Any ideas? thanks :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---