优化
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user