From 2ae700feb3a479b9c545fb245fab10ceed04f172 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Thu, 16 Jul 2020 10:53:27 -0400 Subject: [PATCH] vaccum claim after updating channel stats --- lbry/blockchain/sync/claims.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lbry/blockchain/sync/claims.py b/lbry/blockchain/sync/claims.py index 16cadbcdd..068ed583d 100644 --- a/lbry/blockchain/sync/claims.py +++ b/lbry/blockchain/sync/claims.py @@ -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)