优化企业开发区同步

This commit is contained in:
沈健
2025-06-20 13:30:38 +08:00
parent 3975d029f8
commit 9ce31e9b56
+2 -2
View File
@@ -48,7 +48,7 @@ def sync(province):
DIDATA_DEV_ELASTIC_CLIENT.elastic_client, DIDATA_DEV_ELASTIC_CLIENT.elastic_client,
actions, actions,
thread_count=5, # 并行线程数 thread_count=5, # 并行线程数
chunk_size=1000 # 批量大小 chunk_size=10000 # 批量大小
): ):
if not success: if not success:
print(f"索引失败: {info}") print(f"索引失败: {info}")
@@ -60,7 +60,7 @@ def sync(province):
DIDATA_DEV_ELASTIC_CLIENT.elastic_client, DIDATA_DEV_ELASTIC_CLIENT.elastic_client,
actions, actions,
thread_count=5, # 并行线程数 thread_count=5, # 并行线程数
chunk_size=1000 # 批量大小 chunk_size=10000 # 批量大小
): ):
if not success: if not success:
print(f"索引失败: {info}") print(f"索引失败: {info}")