[Catalyst] Chained actions usage and DBIC performance

Guillermo Roditi groditi at gmail.com
Tue Oct 31 19:40:49 GMT 2006


i do exactly what you just mentioned with $rs->first

On 10/30/06, Nilson Santos Figueiredo Junior <acid06 at gmail.com> wrote:
> On 10/30/06, John Napiorkowski <jjn1056 at yahoo.com> wrote:
> > I do something very similar to what you are talking
> > about but I don't issue a find until the endpoint.
> > You can do search anywhere you do find to get
> > resultsets.  That why you can drill down and keep
> > adding conditions to the query down the chain.  I find
> > this works pretty well, I only ever see a single
> > dtabase call.
>
> I've got some of these around my code, but I've always thought
> $rs->single (or $rs->first) looked a little bit like a hack. But maybe
> that's really the only viable solution.
>
> Does everyone use chained actions like this?
>
> -Nilson Santos F. Jr.
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/
>



More information about the Catalyst mailing list