[Maypole] Re: Maypole responding to requests very slowly (or, how to get just one associated record instead of getting the world)

Peter Speltz peterspeltz@yahoo.com
Thu, 2 Dec 2004 11:22:50 -0800 (PST)


First i replied just to sender, then replied to wrong list, now replying to
correct list.  Sorry bout the duplicates.


--- Dave Howorth <dhoworth@mrc-lmb.cam.ac.uk> wrote:

> I wrote:
> > The first one is the classmetadata and I think you're both agreed that 
> > it would be nice to have a means to turn it off. Somehow making it 
> > evaluate lazily would be another option. Ironic perhaps, but turning it 
> > into an object is my first thought :)
> 
> 'It' is very ambiguous. 'It' was obviously late at night. 'It' is 
> classmetadata.cgi :)
> 
> Sorry, Dave
> 

I was thinking in the view::base where "IT" is created of doing something like
this:

    . . .
    cgi => $r->template_args{classmetadata_cgi} || { $class->to_cgi }
    . . .

Then the model's sub can make them if it wants or set it to "1" to get none or
do nothing and get them.

> 
> _______________________________________________
> maypole mailing list
> maypole@lists.netthink.co.uk
> http://lists.netthink.co.uk/listinfo/maypole
> 


=====
pjs


		
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo