Forum: Ruby on Rails RE: Interesting ActiveRecord vs Hibernate article

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
432fcf0d43d64c1189d9672716ac679d?d=identicon&s=25 Ken Kousen (kousen)
on 2006-05-04 16:47
(Received via mailing list)
_______________________________________________
Rails mailing list
Rails@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails
Ad7805c9fcc1f13efc6ed11251a6c4d2?d=identicon&s=25 Alex Young (Guest)
on 2006-05-04 17:06
(Received via mailing list)
Ken Kousen wrote:
> I'd bet anything the version of RoR in the article was 1.0.
It can't be.  If the article date's accurate (March '05), 1.0 was a good
7 months away (at least...  don't have dates handy).  0.8's more likely.
B11589d2872aa2f284980d9f5ef08f65?d=identicon&s=25 Andrew H. Johnson (Guest)
on 2006-05-04 17:09
(Received via mailing list)
Am I missing something??  Did something change in RoR 1.0 to
ActiveRecord that this article was not correctly reporting?

aj
Ad7805c9fcc1f13efc6ed11251a6c4d2?d=identicon&s=25 Alex Young (Guest)
on 2006-05-04 17:43
(Received via mailing list)
Andrew H. Johnson wrote:
> Am I missing something??  Did something change in RoR 1.0 to
> ActiveRecord that this article was not correctly reporting?
At some point the :include option was added to ActiveRecord::Base#find,
which enables eager loading.  I thought it was before 1.0, but I could
be wrong.  The author makes much of the need to do piggy-back queries,
which is exactly what :include does away with.
7c4087d053eb02d099a17d91ba5e33b5?d=identicon&s=25 Brian Hughes (Guest)
on 2006-05-04 18:14
(Received via mailing list)
On May 4, 2006, at 11:42 AM, Alex Young wrote:
> Andrew H. Johnson wrote:
>> Am I missing something??  Did something change in RoR 1.0 to
>> ActiveRecord that this article was not correctly reporting?
> At some point the :include option was added to
> ActiveRecord::Base#find, which enables eager loading.  I thought it
> was before 1.0, but I could be wrong.  The author makes much of the
> need to do piggy-back queries, which is exactly what :include does
> away with.

The :include option has been part of Rails since at least 0.13 (not
sure what the AR version would be), which was out last Summer. That's
when I first started using it...

-Brian
Ad7805c9fcc1f13efc6ed11251a6c4d2?d=identicon&s=25 Alex Young (Guest)
on 2006-05-05 10:13
(Received via mailing list)
Brian Hughes wrote:
>> need to do piggy-back queries, which is exactly what :include does
>> away with.
>
>
> The :include option has been part of Rails since at least 0.13 (not
> sure what the AR version would be), which was out last Summer. That's
> when I first started using it...
So it's quite possible that it didn't exist when the article was
written.

Is the article being presented as 'new' anywhere?  If so, it might be
worth getting the author to make an update...  Mind you, that's the only
point which he's actually out of date on, so maybe it's not worth it.
This topic is locked and can not be replied to.