Commit 7e3a52ff authored by 段英荣's avatar 段英荣

modify

parent 29378db1
...@@ -72,7 +72,7 @@ class Command(BaseCommand): ...@@ -72,7 +72,7 @@ class Command(BaseCommand):
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():
job = Job( job = Job(
sub_index_name=type_name, sub_index_name=type_info.name,
type_name=type_name, type_name=type_name,
chunk=chunk, chunk=chunk,
) )
......
...@@ -237,8 +237,8 @@ def get_type_info_map(): ...@@ -237,8 +237,8 @@ def get_type_info_map():
type_info_list = [ type_info_list = [
TypeInfo( TypeInfo(
name='doctor_tips', # 医生tips name='suggest',
type='doctor_tips', type='doctor_tips',# 医生tips
model=doctor.Doctor, model=doctor.Doctor,
query_deferred=lambda: doctor.Doctor.objects.all().query, query_deferred=lambda: doctor.Doctor.objects.all().query,
get_data_func=DoctorTransfer.get_doctor_suggest_data_list, get_data_func=DoctorTransfer.get_doctor_suggest_data_list,
......
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