HOTFIX dashboard: pv-slots-corrected čte delta profil z cache (R__079 → fn_pv_forecast_delta_profile_cached)
All checks were successful
CI and deploy / migration-check (push) Successful in 14s
CI and deploy / deploy (push) Has been skipped

Endpoint GET /sites/{id}/forecast/pv-slots-corrected (dashboard) volal těžkou
fn_pv_forecast_delta_profile inline (~44 s/site na prod) — uživatel: 45 s
response, telemetry endpoint vyhladověl. Kanonická plánovací řada (R__088) už
cache používala, R__079 ne. Cache je pro všechny 4 lokality naplněná, čtenář
po HOTFIX 2/2 nikdy nepočítá.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dusan Vojacek
2026-06-12 15:14:07 +02:00
parent c7f595c587
commit b66bb712e4

View File

@@ -76,7 +76,9 @@ as $fn$
group by u.interval_start
),
profile as (
select ems.fn_pv_forecast_delta_profile(
-- VŽDY přes cache (inline fn_pv_forecast_delta_profile = ~44 s/site na prod;
-- dashboard endpoint pv-slots-corrected na ní visel). Refresh řídí job.
select ems.fn_pv_forecast_delta_profile_cached(
p_site_id,
p_delta_data_from,
p_delta_data_to,