From 99d85611bca044c129bdc0e27f402d1ff0be6298 Mon Sep 17 00:00:00 2001 From: Mariusz <mtrela@syncad.com> Date: Fri, 31 Jul 2020 10:29:21 +0200 Subject: [PATCH] Added `Posts.flush()` --- hive/indexer/blocks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hive/indexer/blocks.py b/hive/indexer/blocks.py index a030a0feb..8f2f89ef2 100644 --- a/hive/indexer/blocks.py +++ b/hive/indexer/blocks.py @@ -64,6 +64,8 @@ class Blocks: PostDataCache.flush() Tags.flush() Votes.flush() + cls._flush_blocks() + Posts.flush() time_end = perf_counter() log.info("[PROCESS BLOCK] %fs", time_end - time_start) return ret @@ -90,6 +92,7 @@ class Blocks: Votes.flush() cls._flush_blocks() Follow.flush(trx=False) + Posts.flush() DB.query("COMMIT") time_end = perf_counter() -- GitLab