[storm] Issue with find(), group by, and Single aggregates error
Jamu Kakar
jkakar at kakar.ca
Wed Nov 10 12:40:30 GMT 2010
Hi Ian,
On Wed, Nov 10, 2010 at 1:38 PM, Ian Booth <ian.booth at canonical.com> 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.
More information about the storm
mailing list