Re: Class::DBI performance issues

[prev] [thread] [next] [Date index for 2004/12/04]

From: Tony Bowden
Subject: Re: Class::DBI performance issues
Date: 18:22 on 04 Dec 2004
On Sat, Dec 04, 2004 at 06:21:18PM +0000, Tony Bowden wrote:
> 
>   __PACKAGE__->set_sql(track_seconds => q{
>     SELECT SUM(t.duration_in_seconds)
>       FROM __TABLE(=a)__, __TABLE(CD=c)__, __TABLE(Track=t)__
>      WHERE __JOIN(a c t)__
>        AND a.id = ?
>   });
> 
>   sub track_seconds {
>     my $self = shift;
>     $self->sql_track_seconds($self->id);
>   }

Sorry, that should be:

  sub track_seconds { 
    my $self = shift;
    $self->sql_track_seconds->select_val($self->id);
  }

Tony

(message missing)

Class::DBI performance issues
Jasper Cramwinckel 11:35 on 04 Dec 2004

Re: Class::DBI performance issues
Tony Bowden 18:21 on 04 Dec 2004

Re: Class::DBI performance issues
Tony Bowden 18:22 on 04 Dec 2004

Class::DBI performance issues
Jasper Cramwinckel 13:56 on 06 Dec 2004

Generated at 15:37 on 08 Dec 2004 by mariachi v0.52