Sample large datastore

Tomeu Vizoso tomeu at tomeuvizoso.net
Mon May 19 05:26:37 EDT 2008


On Mon, May 19, 2008 at 10:30 AM, Tomeu Vizoso <tomeu at tomeuvizoso.net> wrote:
>
>    results, count = data_store.find({}, ['uid'])

You may want to limit the amount of results returned by

results, count = data_store.find({'limit': 20}, ['uid'])

as trying to get too much info from the DS in one go can make things
very slow and ultimately OOM.

Regards,

Tomeu



More information about the Devel mailing list