[Dbix-class] Prefetching specific columns
vti
mbit at ukr.net
Mon Apr 9 14:43:01 GMT 2007
vti(mbit at ukr.net)@Mon, Apr 09, 2007 at 04:38:24PM +0300:
> 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.
>
>
Oops. I'm sorry, that works just fine :(
Thanx for the patience.
--
vti -- Viacheslav Tikhanovskii
With gladness and rejoicing shall they be brought: they shall enter into
the king's palace.
-- Psalms 45:15
More information about the Dbix-class
mailing list