-- ============================================================
-- Forecast PV: urychlení denních/range dotazů podle interval_start
-- (fn_forecast_pv_split, pv-slots* funkce)
-- ============================================================

create index if not exists idx_forecast_pv_interval_start_run
  on ems.forecast_pv_interval (interval_start, run_id);

