Open
Description
I wanted to check if a patch to support something like:
CopyMapping(model=Entry, data=huge_list_of_unsaved_entries)
would be a welcome patch
I have some code I was considering making into a library that uses pg COPY to replace Django's bulk_create in the form of a function w/ the signature:
def postgres_bulk_copy(objects, ModelCls=None,
table_name=None,
fields=None, not_null=None, null=None,
):
I was considering abstracting this into a generic library to use Postgres' COPY TO/FROM when I found this library & figured I'd check if you'd be open to expanding the scope for this use case.