Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Looking for comments on a rails patch, lazy association instantiation
Rick DeNatale
10/24/2007 10:56:00 PM
Prompted by some discussion on rails-talk last week, I worked up a
patch to add an option to ActiveRecord::Base#find which allows
associations to be :included for purposes of the where clause, but
defers instantiating the included association objects.
The use case is where there are a large number of association rows
returned by the query, the vast majority will not be used since they
are only being used to select a small set of root objects.
Here's the ticket with the patch:
http://dev.rubyonrails.org/t...
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denh...
1 Answer
Rick DeNatale
10/24/2007 11:07:00 PM
0
Sorry I intended this to go to the rails-talk list but gmail outsmarted me.
On 10/24/07, Rick DeNatale <rick.denatale@gmail.com> wrote:
> Prompted by some discussion on rails-talk last week, I worked up a
> patch to add an option to ActiveRecord::Base#find which allows
> associations to be :included for purposes of the where clause, but
> defers instantiating the included association objects.
>
> The use case is where there are a large number of association rows
> returned by the query, the vast majority will not be used since they
> are only being used to select a small set of root objects.
>
> Here's the ticket with the patch:
>
http://dev.rubyonrails.org/t...
>
> --
> Rick DeNatale
>
> My blog on Ruby
>
http://talklikeaduck.denh...
>
>
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denh...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Looking for comments on a rails patch, lazy association instantiation
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password