fix: add 1s sleep between batches to reduce DB pressure during backfill
This commit is contained in:
parent
18d628359c
commit
6fbf3566f9
@ -233,6 +233,7 @@ def main():
|
||||
total += n
|
||||
logger.info(f"本批回填 {n} 条,累计 {total} 条")
|
||||
|
||||
time.sleep(1) # 限速:每批间隔1秒,减轻DB压力
|
||||
if not args.loop:
|
||||
break
|
||||
time.sleep(300) # 5分钟
|
||||
|
||||
Loading…
Reference in New Issue
Block a user