Commit f91fd4e7 authored by Dr.李's avatar Dr.李

update CONCURRENTLY

parent 2ad54dc7
...@@ -625,7 +625,7 @@ def fetch_date(table, query_date, engine): ...@@ -625,7 +625,7 @@ def fetch_date(table, query_date, engine):
def update_materialized_views(ds, **kwargs): def update_materialized_views(ds, **kwargs):
alpha_logger.info("starting refresh full_factor_view ...") alpha_logger.info("starting refresh full_factor_view ...")
engine.execute("REFRESH MATERIALIZED VIEW full_factor_view;") engine.execute("REFRESH MATERIALIZED VIEW CONCURRENTLY full_factor_view;")
alpha_logger.info("starting cluster full_factor_view ...") alpha_logger.info("starting cluster full_factor_view ...")
engine.execute("CLUSTER full_factor_view;") engine.execute("CLUSTER full_factor_view;")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment