Skip to content
Snippets Groups Projects
Commit e3a148ae authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Eliminated bloating time measure

parent 9080bb0d
No related branches found
No related tags found
4 merge requests!456Release candidate v1 24,!230Setup monitoring with pghero,!138Small typos fixed,!124Remove FKs before initial sync and recreate after initial sync
...@@ -240,13 +240,12 @@ class DbState: ...@@ -240,13 +240,12 @@ class DbState:
update_active_starting_from_posts_on_block(last_imported_block, current_imported_block) 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() time_end = perf_counter()
log.info("[INIT] update_all_posts_active executed in %fs", time_end - time_start) 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 @staticmethod
def status(): def status():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment