Skip to content

Commit

Permalink
Call commit after refreshing mat view (#3667)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgboss authored May 24, 2024
1 parent 315d119 commit f08d95e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/app/db/crud/weather_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,4 +369,5 @@ def refresh_morecast2_materialized_view(session: Session):
start = datetime.datetime.now()
logger.info("Refreshing morecast_2_materialized_view")
session.execute(text("REFRESH MATERIALIZED VIEW morecast_2_materialized_view"))
session.commit()
logger.info(f"Finished mat view refresh with elapsed time: {datetime.datetime.now() - start}")

0 comments on commit f08d95e

Please sign in to comment.