Commit 3a32bc13 authored by 段英荣's avatar 段英荣

modify

parent 35c5e53f
...@@ -68,7 +68,7 @@ class Command(BaseCommand): ...@@ -68,7 +68,7 @@ class Command(BaseCommand):
for type_name in type_name_list: for type_name in type_name_list:
type_info = get_type_info_map()[type_name] type_info = get_type_info_map()[type_name]
query_set = da.queryset query_set = type_info.queryset
slicer = TableSlicer(queryset=query_set, chunk_size=type_info.bulk_insert_chunk_size) slicer = TableSlicer(queryset=query_set, chunk_size=type_info.bulk_insert_chunk_size)
for chunk in slicer.chunks(): for chunk in slicer.chunks():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment