George Hartzell wrote:
> I've put together a dead-simple example that demonstrates the problem
> that I'm having using prefetch. Three tables, 4 rows of data in
> total, simple driver script, etc....
You can only prefetch one "direction" of has_many rels at once. Anything else
results in a cross-product return of records which tends to be heinously
inefficient anyway.
i.e.
[ 'hm_rel', 'other_hm_rel' ] won't work
although
[ { 'hm_rel' => { 'belongs_to_rel' => 'ya_hm_rel' }, 'other_belongs_to_rel' ]
and similar are fine.
_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/