← Back to team overview

launchpad-dev team mailing list archive

Re: tuesday - performance day!

 

On Tue, 2010-08-03 at 13:09 +0100, Jonathan Lange wrote:
> On Tue, Aug 3, 2010 at 12:27 PM, William Grant <me@xxxxxxxxxxxxxxxxxx> wrote:
> > On Tue, 2010-08-03 at 23:17 +1200, Robert Collins wrote:
> ...
> >> 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.
> 
> I agree, although I don't understand that last bit about there being
> "nothing that can be done about collections".

If I do an appropriate prejoin, Storm won't make a query when I access a
reference. But I can't prejoin ReferenceSets -- any attempt to access
one *will* result in a query.




References