openclimatefix / nowcasting_datamodel

Datamodel for the nowcasting project
6 stars 6 forks source link

Partition Forecast Value table #108

Closed peterdudfield closed 1 year ago

peterdudfield commented 2 years ago

Would be good to partition on forecast_value table as it getting to big

useful blogs

peterdudfield commented 2 years ago

Currently there are '132,756,148' rows in the forecast value table. This is about

= 150 million rows

Would be good to partittion per month, so that we have about 25 million in each table

peterdudfield commented 2 years ago

Good to also try clustering - 'CLUSTER forecast_value using ix_forecast_value_target_time' as this will also speed things up

peterdudfield commented 2 years ago

tried in #109

and upgraded in