djangosnippets.org: Latest snippets tagged with 'gc'https://djangosnippets.org/tags/gc/2010-03-03T13:00:19.278641-06:00Memory efficient Django Queryset Iterator
2010-03-03T13:00:19.278641-06:00WoLpHhttps://djangosnippets.org/snippets/1949/<p>While checking up on some cronjobs at <a href="http://www.youtellme.nl/">YouTellMe</a> we had some problems with large cronjobs that took way too much memory. Since Django normally loads all objects into it's memory when iterating over a queryset (even with .iterator, although in that case it's not Django holding it in it's memory, …</p>
Freely redistributable