[Dbix-class] prefetch specific columns

Matt S Trout dbix-class at trout.me.uk
Mon Jul 9 13:39:40 GMT 2007


On Sun, Jul 08, 2007 at 04:25:15PM +0300, vti wrote:
> Hello.
> 
> Is there any way when using 'prefetch' attribute to specify which columns to
> get from db? Or is there any low-level way to change SQL before doing any
> fetches?

If you set up the select attr yourself with an as of 'relname.colname' the
prefetch mechanism will be kicked in automatically - only works for one-one
rather than one-many prefetch atm though.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 



More information about the Dbix-class mailing list