优化
This commit is contained in:
@@ -119,11 +119,9 @@ def sync_by_city(city):
|
|||||||
"_id": item['_id'],
|
"_id": item['_id'],
|
||||||
"doc": doc_info
|
"doc": doc_info
|
||||||
}
|
}
|
||||||
if index < 6500:
|
|
||||||
continue
|
|
||||||
actions.append(action)
|
actions.append(action)
|
||||||
|
|
||||||
if len(actions) == 1:
|
if len(actions) == 5000:
|
||||||
print(index)
|
print(index)
|
||||||
print(item)
|
print(item)
|
||||||
helpers.bulk(es206_client.elastic_client, actions)
|
helpers.bulk(es206_client.elastic_client, actions)
|
||||||
|
|||||||
Reference in New Issue
Block a user