vaccum claim after updating channel stats
This commit is contained in:
parent
d1ac066c6d
commit
2ae700feb3
1 changed files with 2 additions and 0 deletions
|
@ -251,4 +251,6 @@ def update_channel_stats(blocks: Tuple[int, int], initial_sync: int, p: Progress
|
|||
else:
|
||||
return
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue