优化
This commit is contained in:
@@ -87,7 +87,7 @@ def find_around_price_item(seaweed):
|
||||
return
|
||||
global find_count
|
||||
find_count += 1
|
||||
if find_count % 1 == 0:
|
||||
if find_count % 1000 == 0:
|
||||
log.info("已查找" + str(find_count))
|
||||
|
||||
mutex.acquire()
|
||||
@@ -124,7 +124,7 @@ def find_around_price_item(seaweed):
|
||||
}
|
||||
|
||||
actions.append(action)
|
||||
if len(actions) == 10:
|
||||
if len(actions) == 5000:
|
||||
helpers.bulk(es206_client.elastic_client, actions)
|
||||
log.info("更新:" + str(find_count))
|
||||
actions.clear()
|
||||
|
||||
Reference in New Issue
Block a user