Skip to content

Commit a727403

Browse files
committed
speed up
1 parent 6ae4b9f commit a727403

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nowcasting_datamodel/update.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ def update_all_forecast_latest(forecasts: List[ForecastSQL], session: Session):
116116
"""
117117

118118
# get all latest forecasts
119-
forecasts_historic_all_gsps = get_latest_forecast_for_gsps(session=session, historic=True)
119+
forecasts_historic_all_gsps = get_latest_forecast_for_gsps(
120+
session=session, historic=True, preload_children=True
121+
)
120122

121123
for forecast in forecasts:
122124

0 commit comments

Comments
 (0)