#5423: "dumpdata" should stream output one row at a time
----------------------+-----------------------------------------------------
Reporter: adrian | Owner: nobody
Status: new | Component: django-admin.py
Version: SVN | Resolution:
Keywords: | Stage: Accepted
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
----------------------+-----------------------------------------------------
Changes (by Bastian Kleineidam <[EMAIL PROTECTED]>):
* has_patch: 0 => 1
Comment:
Here is a patch that streams json data per object. It also uses a
generator method for the object list instead of storing everything in a
list beforehand. This should get rid of your memory problems (you are
welcome to test this patch).
Note that yaml output has the same streaming problem which is not fixed
here.
--
Ticket URL: <http://code.djangoproject.com/ticket/5423#comment:5>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---