From f33bf3039038a4be315d63b8159bf94372d15e93 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Thu, 10 Jul 2025 20:37:09 +0700 Subject: simplified refresh materialized view --- refresh_materialized_view.ktr | 624 ++---------------------------------------- 1 file changed, 18 insertions(+), 606 deletions(-) (limited to 'refresh_materialized_view.ktr') diff --git a/refresh_materialized_view.ktr b/refresh_materialized_view.ktr index 50742d7..ad63827 100644 --- a/refresh_materialized_view.ktr +++ b/refresh_materialized_view.ktr @@ -487,79 +487,9 @@ - - accurate - adempiere - Y - - - adempiere - combine - Y - - - combine - salesperson - Y - - - update quarter - growth existing customer - Y - - - growth existing customer - growth salesperson - Y - - - growth salesperson - invoice customer group by brand and year - Y - - - sale order group - compare conversion rate brand - Y - - - sale order - sale order group - Y - - - compare conversion rate brand - sale order group lob - Y - - - sale order group lob - aging customer - Y - - - aging customer - leadtime so to delivered - Y - - - leadtime so to delivered - leadtime po to received - Y - - - invoice customer group by brand and year - sale order - Y - - - salesperson - update quarter - Y - - accurate + refresh all materialized view ExecSQL Y @@ -574,7 +504,21 @@ N N N - refresh materialized view mv_omzet_by_invoice_accurate + refresh materialized view mv_omzet_by_invoice_accurate; +refresh materialized view mv_omzet_by_invoice_adempiere; +refresh materialized view mv_omzet_by_invoice_combine; +refresh materialized view dw_salesperson; +select update_running_quarter(); +refresh materialized view mv_growth_existing_customer; +refresh materialized view mv_growth_salesperson; +refresh materialized view mv_invoice_customer_group_brand_year; +refresh materialized view mv_sale_order; +refresh materialized view mv_sale_order_group; +refresh materialized view mv_compare_conversion_rate_brand; +refresh materialized view mv_sale_order_group_lob; +refresh materialized view mv_aging_customer; +refresh materialized view mv_leadtime_so_to_delivered; +refresh materialized view mv_leadtime_po_to_received; N @@ -591,540 +535,8 @@ - 240 - 160 - Y - - - - adempiere - ExecSQL - - Y - - 1 - - none - - - dw bi indoteknik (localhost) - N - N - N - N - refresh materialized view mv_omzet_by_invoice_adempiere - N - - - - - - - - - - - - - - - - 400 - 160 - Y - - - - aging customer - ExecSQL - - Y - - 1 - - none - - - dw bi indoteknik (localhost) - N - N - N - N - refresh materialized view mv_aging_customer - N - - - - - - - - - - - - - - - - 624 - 432 - Y - - - - combine - ExecSQL - - Y - - 1 - - none - - - dw bi indoteknik (localhost) - N - N - N - N - refresh materialized view mv_omzet_by_invoice_combine - N - - - - - - - - - - - - - - - - 560 - 160 - Y - - - - compare conversion rate brand - ExecSQL - - Y - - 1 - - none - - - dw bi indoteknik (localhost) - N - N - N - N - refresh materialized view mv_compare_conversion_rate_brand - N - - - - - - - - - - - - - - - - 240 - 432 - Y - - - - growth existing customer - ExecSQL - - Y - - 1 - - none - - - dw bi indoteknik (localhost) - N - N - N - N - refresh materialized view mv_growth_existing_customer - N - - - - - - - - - - - - - - - - 1200 - 160 - Y - - - - growth salesperson - ExecSQL - - Y - - 1 - - none - - - dw bi indoteknik (localhost) - N - N - N - N - refresh materialized view mv_growth_salesperson - N - - - - - - - - - - - - - - - - 1200 - 304 - Y - - - - invoice customer group by brand and year - ExecSQL - - Y - - 1 - - none - - - dw bi indoteknik (localhost) - N - N - N - N - refresh materialized view mv_invoice_customer_group_brand_year - N - - - - - - - - - - - - - - - - 944 - 304 - Y - - - - leadtime po to received - ExecSQL - - Y - - 1 - - none - - - dw bi indoteknik (localhost) - N - N - N - N - refresh materialized view mv_leadtime_po_to_received - N - - - - - - - - - - - - - - - - 992 - 432 - Y - - - - leadtime so to delivered - ExecSQL - - Y - - 1 - - none - - - dw bi indoteknik (localhost) - N - N - N - N - refresh materialized view mv_leadtime_so_to_delivered - N - - - - - - - - - - - - - - - - 800 - 432 - Y - - - - sale order - ExecSQL - - Y - - 1 - - none - - - dw bi indoteknik (localhost) - N - N - N - N - refresh materialized view mv_sale_order - N - - - - - - - - - - - - - - - - 400 - 304 - Y - - - - sale order group - ExecSQL - - Y - - 1 - - none - - - dw bi indoteknik (localhost) - N - N - N - N - refresh materialized view mv_sale_order_group - N - - - - - - - - - - - - - - - - 240 - 304 - Y - - - - sale order group lob - ExecSQL - - Y - - 1 - - none - - - dw bi indoteknik (localhost) - N - N - N - N - refresh materialized view mv_sale_order_group_lob - N - - - - - - - - - - - - - - - - 432 - 432 - Y - - - - salesperson - ExecSQL - - Y - - 1 - - none - - - dw bi indoteknik (localhost) - N - N - N - N - refresh materialized view dw_salesperson - N - - - - - - - - - - - - - - - - 720 - 160 - Y - - - - update quarter - ExecSQL - - Y - - 1 - - none - - - dw bi indoteknik (localhost) - N - N - N - N - select update_running_quarter() - N - - - - - - - - - - - - - - - - 1024 - 160 + 320 + 80 Y -- cgit v1.2.3