[storm] Limit clause

shawn bright nephish at gmail.com
Thu Jul 26 17:02:30 BST 2007


thanks for this.
how do i do an ORDER BY ?

thanks

On 7/26/07, Jamu Kakar <jamshed.kakar at canonical.com> wrote:
>
> Hi Akira,
>
> akira wrote:
> > Is there an actual LIMIT clause? If yes, could someone show an example
> > of its use?
>
> You can use the following, in addition to the slicing method Chris
> suggested:
>
> result = store.find(Person, Person.name.like("Bob%"))
> result.config(limit=5, offset=2)
>
> Note, that you can also pass 'distinct=True' to ResultSet.config to
> make it use 'SELECT DISTINCT' queries.
>
> Hope this helps,
> J.
>
>
> --
> storm mailing list
> storm at lists.canonical.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/storm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/storm/attachments/20070726/24c490da/attachment.htm 


More information about the storm mailing list