boxtribute icon indicating copy to clipboard operation
boxtribute copied to clipboard

Use peewee iterator in loaders

Open pylipp opened this issue 5 months ago • 0 comments

cf. http://docs.peewee-orm.com/en/latest/peewee/querying.html#iterating-over-large-result-sets

To reduce the amount of memory used by peewee when iterating over a query, use the iterator() method. This method allows you to iterate without caching each model returned, using much less memory when iterating over large result sets.

pylipp avatar Aug 29 '24 13:08 pylipp