Closed peterdudfield closed 1 year ago
Improve query for forecast all historic=True
this function could be improves - https://github.com/openclimatefix/nowcasting_datamodel/blob/main/nowcasting_datamodel/read/read.py#L295
forecast_values_latest
forecast_values
adding an index on forecastsql.historic seems to help. Tried this on dev
Detailed Description
Improve query for forecast all historic=True
Context
Possible Implementation
this function could be improves - https://github.com/openclimatefix/nowcasting_datamodel/blob/main/nowcasting_datamodel/read/read.py#L295
forecast_values_latest
rather thanforecast_values
, this might speed it up