[storm] Limiting results

Jamu Kakar jamshed.kakar at canonical.com
Sun Nov 25 00:50:56 GMT 2007


Hi Akira,

akira wrote:
 > A trivial thing, How does one limit results fetched from a database?

result = store.find(...)
result.config(limit=10)

You can specify an offset, too:

result = store.find(...)
result.config(offset=10, limit=10)

Thanks,
J.



More information about the storm mailing list