From e3a148aee501793d51bfc4778e8205f73a62fe74 Mon Sep 17 00:00:00 2001 From: Bartek Wrona <wrona@syncad.com> Date: Tue, 8 Sep 2020 15:32:58 +0200 Subject: [PATCH] Eliminated bloating time measure --- hive/db/db_state.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hive/db/db_state.py b/hive/db/db_state.py index 3c97d5031..836d6c2f2 100644 --- a/hive/db/db_state.py +++ b/hive/db/db_state.py @@ -240,13 +240,12 @@ class DbState: update_active_starting_from_posts_on_block(last_imported_block, current_imported_block) - log.info("Recreating FKs") - from hive.db.schema import create_fk - create_fk(cls.db()) - time_end = perf_counter() log.info("[INIT] update_all_posts_active executed in %fs", time_end - time_start) + log.info("Recreating FKs") + from hive.db.schema import create_fk + create_fk(cls.db()) @staticmethod def status(): -- GitLab