Hi Ian,

On Wed, Nov 10, 2010 at 1:38 PM, Ian Booth <[email protected]> wrote:
> wgrant kindly pointed me to a Launchpad class - DecoratedResultSet
> lib/canonical/launchpad/components/decoratedresultset.py
>
> I have to look into it in a bit more detail, but at first glance it
> appears to solve my problem. The usage seems to be:
>
> replace
> return store.find(xxxx)
> with
> return DecoratedResultSet(store.find(xxxx))
>
> I'll poke around and see if it works for me ie the count() and the
> object construction. Perhaps this sort of class should be moved into the
> core storm API and not just be left as a Launchpad only thing.

We've talked about it before, but it's really a hack.  It'd be better
to support proper eager loading in Storm than introduce something like
DecoratedResultSet.

Thanks,
J.

-- 
storm mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/storm

Reply via email to