[Catalyst] Chained actions usage and DBIC performance

2006-10-30 Thread Nilson Santos Figueiredo Junior
Lately I've been using chained actions a lot, since it ends up making everything look cleaner and more organized. I tend to structure things in a way that I've got some Catalyst actions that load some items from the database which are the root of the chain and then I've got another set of Catal

Re: [Catalyst] Chained actions usage and DBIC performance

2006-10-30 Thread John Napiorkowski
--- Nilson Santos Figueiredo Junior <[EMAIL PROTECTED]> wrote: > Lately I've been using chained actions a lot, since > it ends up making > everything look cleaner and more organized. > > I tend to structure things in a way that I've got > some Catalyst > actions that load some items from the data

Re: [Catalyst] Chained actions usage and DBIC performance

2006-10-30 Thread Nilson Santos Figueiredo Junior
On 10/30/06, John Napiorkowski <[EMAIL PROTECTED]> 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

Re: [Catalyst] Chained actions usage and DBIC performance

2006-10-31 Thread Guillermo Roditi
i do exactly what you just mentioned with $rs->first On 10/30/06, Nilson Santos Figueiredo Junior <[EMAIL PROTECTED]> wrote: On 10/30/06, John Napiorkowski <[EMAIL PROTECTED]> wrote: > I do something very similar to what you are talking > about but I don't issue a find until the endpoint. > You

Re: [Catalyst] Chained actions usage and DBIC performance

2006-11-01 Thread David Jack Olrik
On 30/10/2006, at 22.28, Nilson Santos Figueiredo Junior wrote: Does everyone use chained actions like this? http://www.onemogin.com/blog/528-chained-searches-the-beauty-of- dbixclass-and-catalyst.html -- Best regards, David Jack Olrik <[EMAIL PROTECTED]> http://david.olrik.dk

Re: [Catalyst] Chained actions usage and DBIC performance

2006-11-01 Thread Nilson Santos Figueiredo Junior
On 11/1/06, David Jack Olrik <[EMAIL PROTECTED]> wrote: http://www.onemogin.com/blog/528-chained-searches-the-beauty-of- dbixclass-and-catalyst.html Nice article. However, by "chained actions" I meant Catalyst's builtin Chained actions. But I guess it still added some weight to the previous sug

Re: [Catalyst] Chained actions usage and DBIC performance

2006-11-06 Thread David Jack Olrik
On 01/11/2006, at 16.26, Nilson Santos Figueiredo Junior wrote: Nice article. However, by "chained actions" I meant Catalyst's builtin Chained actions. You could do the same as in the article, and just stuffing the resultset in the stash instead. But I guess it still added some weight t

Re: [Catalyst] Chained actions usage and DBIC performance

2006-11-08 Thread Matt S Trout
Nilson Santos Figueiredo Junior wrote: Lately I've been using chained actions a lot, since it ends up making everything look cleaner and more organized. I tend to structure things in a way that I've got some Catalyst actions that load some items from the database which are the root of the chai

Re: [Catalyst] Chained actions usage and DBIC performance

2006-11-08 Thread Nilson Santos Figueiredo Junior
On 11/8/06, Matt S Trout <[EMAIL PROTECTED]> wrote: > sub load : Chained('/item') PathPart('') CaptureArgs(1) { >my ($self, $c, $id) = @_; my $pre = $c->stash->{prefetches} = {}; $c->stash->{item} = Scalar::Defer::lazy { $c->model('DB')->search(undef, $pre)->find($id) }; > } T

Re: [Catalyst] Chained actions usage and DBIC performance

2006-11-10 Thread Matt S Trout
Nilson Santos Figueiredo Junior wrote: On 11/8/06, Matt S Trout <[EMAIL PROTECTED]> wrote: > sub load : Chained('/item') PathPart('') CaptureArgs(1) { >my ($self, $c, $id) = @_; my $pre = $c->stash->{prefetches} = {}; $c->stash->{item} = Scalar::Defer::lazy { $c->model('DB')->s

Re: [Catalyst] Chained actions usage and DBIC performance

2006-11-10 Thread John Siracusa
On 11/10/06 3:21 AM, Matt S Trout wrote: > Nilson Santos Figueiredo Junior wrote: >> Are there any known issues regarding this module? Because if not, I >> guess I'll probably start stuffing lazy calls inside my chained >> actions tomorrow. ;-) > > Don't believe so, and it's audreycode so *usually

Re: [Catalyst] Chained actions usage and DBIC performance

2006-11-10 Thread Nilson Santos Figueiredo Junior
On 11/10/06, Matt S Trout <[EMAIL PROTECTED]> wrote: Don't believe so, and it's audreycode so *usually* works first time. Plus I know a few active users in the Cat community and it's getting lots of use in Jifty, so I'm betting it's pretty solid. This makes me feel even sorrier for not being ab

Re: [Catalyst] Chained actions usage and DBIC performance

2006-11-10 Thread Perrin Harkins
On Fri, 2006-11-10 at 12:08 -0200, Nilson Santos Figueiredo Junior wrote: > On 11/10/06, Matt S Trout <[EMAIL PROTECTED]> wrote: > > Don't believe so, and it's audreycode so *usually* works first time. Plus I > > know a few active users in the Cat community and it's getting lots of use in > > Jifty