This commit is contained in:
shenjian@fangjia.com
2023-05-11 09:48:27 +08:00
parent 3801ddcc70
commit 33f65f6199
@@ -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()