![]() Looks pretty good from a quick skim over - someone else from this ticket want to review the patch and report back. Python process resident memory size was at about 20M all the time. I used this patch and changed () to () in djangocoremanagementcommandsdumpdata.py.Īfter that I was successfully able to dump a considerably big database (1Gb SQLite file). Whoops, please ignore the date formatting changes from the patch. Note that yaml output has the same streaming problem which is not fixed here. This should get rid of your memory problems (you are welcome to test this patch). It also uses a generator method for the object list instead of storing everything in a list beforehand. Django Dumpdata Error Unable To Serialize Database Generator Method For Perhaps theres a bug in that memory isnt being freed as it iterates. The dump consumed about 100M of my free memory while it was churning, then dumped everything to screen and the 100M became free again. Just as a point of reference, I dumped a table with 100k rows into YAML without problems. Django Dumpdata Error Unable To Serialize Database Generator Method For. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |