Compare commits

..

2 Commits

4 changed files with 8 additions and 2 deletions

View File

@ -548,7 +548,7 @@ BEGIN
AND o.qtyord = q.vol AND o.qtyord = q.vol
AND o.fs_line = '41010' AND o.fs_line = '41010'
AND o.calc_status <> 'CANCELLED' AND o.calc_status <> 'CANCELLED'
AND o.version IN ('Actual', 'Forecast', 'Quotes') AND o.version IN ('Actual', 'Forecast', 'Quotes', 'Budget')
AND o.part IS NOT NULL AND o.part IS NOT NULL
AND SUBSTRING(o.glec, 1, 1) <= '2'; AND SUBSTRING(o.glec, 1, 1) <= '2';
-- 14:13 10:09 -- 14:13 10:09

View File

@ -4,3 +4,4 @@ EXEC pricing.pricing.rebuild_pricelist;
--14 secconds --14 secconds
EXEC pricing.pricing.rebuild_targets; EXEC pricing.pricing.rebuild_targets;
--12:49 --12:49
EXEC pricing.pricing.refresh_cost_rollups

View File

@ -4,3 +4,5 @@ CALL pricequote.rebuild_pricelist();
--32 seconds --32 seconds
CALL pricequote.refresh_target_prices_base(); CALL pricequote.refresh_target_prices_base();
--45 seconds --45 seconds
REFRESH MATERIALIZED VIEW rlarp.cost_v1ds
REFRESH MATERIALIZED VIEW rlarp.cost_v0ds

View File

@ -48,6 +48,9 @@ BEGIN
-- rebuild target prices -- rebuild target prices
EXEC pricing.rebuild_targets; EXEC pricing.rebuild_targets;
-- rebuild costs
EXEC pricing.pricing.refresh_cost_rollups
END TRY END TRY
BEGIN CATCH BEGIN CATCH