← Back to team overview

launchpad-dev team mailing list archive

Re: tuesday - performance day!

 

On Tue, 2010-08-03 at 23:17 +1200, Robert Collins wrote:
> On Tue, Aug 3, 2010 at 11:11 PM, Julian Edwards
> <julian.edwards@xxxxxxxxxxxxx> wrote:
> >
> > So I guess the question is, does allmembers have to be a property?  It sounds
> > like it needs to be a method to me.
> 
> Well, allmembers isn't the problem: its the other properties that are
> the problem :). If we make them all into methods so that you have to
> ask for them directly, then the API will be fast, but the equivalent
> web page may still be slow if it actually has to call the methods
> because of what its showing.
> 
> Handwaving: I'd like to have a flexible way of saying "I need these
> attributes (x, y,z) of the members of this collection
> (some-GenericCollection-subclass)" and have all the needed related sql
> expressions banged on automatically, then delivered as a result set of
> the right objects, with those related things precached.

This would also be really handy for normal LP code. Currently one must
join in references manually, and there's nothing that can be done about
collections.




Follow ups

References