fix: add 1s sleep between batches to reduce DB pressure during backfill

This commit is contained in:
root 2026-03-04 13:31:28 +00:00
parent 18d628359c
commit 6fbf3566f9

View File

@ -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分钟