json.dump
cannot be tricked to loop over itertators (in any sane way)export()
returns a list in memory instead of a lazy iterator."["
to a tempfileexport(...).json.encode(...)
on chunks of our queryset (which will be a string with json-list starting/ending with "[]"
)","
"]"
to the tempfilepulpcore.app.importexport._write_export()
)pulpcore.plugin.importexport.QueryModelResource
, which all PIE model-resources subclass from.export_to_file
would take a query_set
, a file_stream
, the format
and maybe a batch_size
parameter.import/export