[Dbix-class] prefetching and many_to_many

Matt S Trout dbix-class at trout.me.uk
Sun Aug 13 00:34:43 CEST 2006


George Hartzell wrote:
> Matt S Trout writes:
>  > [...]
>  > But wouldn't it be better to make search_related check the prefetch attr and 
>  > copy the appropriate stuff from the cache instead?
> 
> Would that also work on things fetched through has_many relationships?
> 
> That'd be great!

Eh? The problem we're discussing here is how to make it work for many-many the 
same way it does for has_many.

Or are you wanting has_manys to work with prefetch in some extra way?



More information about the Dbix-class mailing list