[storm] Store.find() and GROUP BY ORDER BY
Christopher Armstrong
radix at twistedmatrix.com
Wed Sep 12 13:48:44 BST 2007
On 9/12/07, Vsevolod Balashov <vsevolod at balashov.name> wrote:
> Hello!
>
> Using Storm, I found a nasty drawback:
>
> With Store.find() can I get a list of objects using different conditions WHERE.
> I can even use the OFFSET and LIMIT through
> Store.find(...).config(offset, limit)
> that can be useful in web-applications. IMHO this design with "config" is uglu.
ResultSet supports slicing, which is implemented in terms of offset
and limit. Store.find(...).config(offset, offset+limit)
group_by will be added as a method to ResultSet soonishly.
--
Christopher Armstrong
International Man of Twistery
http://radix.twistedmatrix.com/
http://twistedmatrix.com/
http://canonical.com/
More information about the storm
mailing list