HOTFIX dashboard: pv-slots-corrected čte delta profil z cache (R__079 → fn_pv_forecast_delta_profile_cached)
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user