djangosnippets.org: Latest snippets tagged with 'queryset_foreach'https://djangosnippets.org/tags/queryset_foreach/2009-03-29T21:03:52.979071-05:00streaming dump_data
2009-03-29T21:03:52.979071-05:00kcarnoldhttps://djangosnippets.org/snippets/1402/<p><code>dumpdata</code> without <code>MemoryErrors</code>, with progress notification. Most of the real work is done by snippets <a href="http://www.djangosnippets.org/snippets/1400/">1400</a> and <a href="http://www.djangosnippets.org/snippets/1401/">1401</a>.</p>
<pre><code>./manage.py dumpdata_stream --format=xml > big_dump.xml
</code></pre>
<p>This is basically the stock Django <code>dumpdata</code> with a few modifications. Django devs: it's hard to reuse parts of most Django management commands. A little …</p>
Freely redistributable