might_have and prefetch it's relationships on first access?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

might_have and prefetch it's relationships on first access?

Mitchell Elutovich
Example

I have a table that might_have an expansion board; an expansion board has_many locks

Is it possible to when the might_have is first accessed to prefetch the locks?

(Yes I know that when I get the table I can prefetch the board and it's locks; just wondering if I have to do it this way.)

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@...