[storm] Store.find() and GROUP BY ORDER BY
Christopher Armstrong
radix at twistedmatrix.com
Wed Sep 12 13:49:35 BST 2007
On 9/12/07, Christopher Armstrong <radix at twistedmatrix.com> wrote:
> 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)
This is what happens when I write email before coffee. I meant to say:
Store.find(...)[offset:offset+limit]
--
Christopher Armstrong
International Man of Twistery
http://radix.twistedmatrix.com/
http://twistedmatrix.com/
http://canonical.com/
More information about the storm
mailing list