[Dbix-class] Prefetching specific columns

vti mbit at ukr.net
Mon Apr 9 14:38:24 GMT 2007


Christopher H. Laco(claco at chrislaco.com)@Mon, Apr 09, 2007 at 09:29:22AM -0400:
> vti wrote:
> > Hi
> > 
> > Is it possible to prefetch only specific columns and not the whole objec?
> > 
> > Thanx
> > 
> 
> 
> http://search.cpan.org/dist/DBIx-Class-0.07999_02/lib/DBIx/Class/ResultSet.pm#columns
> 

Well, i tried that. But the thing is that when i don't do prefetch literally and accessing related table it makes a new SQL request even if i specified those columns in "columns" or "include_columns". And i don't want that.


-- 
vti -- Viacheslav Tikhanovskii
You can get much further with a kind word and a gun than you can with a
kind word alone.
		-- Al Capone
		[Also attributed to Johnny Carson.  Ed.]



More information about the Dbix-class mailing list