vaccum claim after updating channel stats

This commit is contained in:
Lex Berezhny 2020-07-16 10:53:27 -04:00
parent d1ac066c6d
commit 2ae700feb3

View file

@ -251,4 +251,6 @@ def update_channel_stats(blocks: Tuple[int, int], initial_sync: int, p: Progress
else: else:
return return
result = p.ctx.execute(update_sql) result = p.ctx.execute(update_sql)
if result.rowcount and p.ctx.is_postgres:
p.ctx.execute_notx(text("VACUUM claim;"))
p.step(result.rowcount) p.step(result.rowcount)