This commit is contained in:
Jian Shen
2023-04-25 21:48:36 +08:00
parent 2d0c87b701
commit 6a0d4149b8
+1 -3
View File
@@ -119,11 +119,9 @@ def sync_by_city(city):
"_id": item['_id'],
"doc": doc_info
}
if index < 6500:
continue
actions.append(action)
if len(actions) == 1:
if len(actions) == 5000:
print(index)
print(item)
helpers.bulk(es206_client.elastic_client, actions)