Performance Issue. In a Postgres Database environment that has a larger than average number of Roles, we can see a performance issue in MSP. The PRJ_NK_RESOURCE_REMAIN_AVAIL_FCT function used in odf pmd - MSP query is slow.
Steps to Reproduce:
Expected Results: Query returns results in a few minutes or less.
Actual Results: Query takes 8-13 minutes to complete.
Release : 16.0.1, 16.0.2
Component : Clarity Microsoft Project (MSP)
Postgres Database
DE65146 -
Workaround:
CREATE OR REPLACE FUNCTION prj_nk_resource_total_alloc_fct(p_resource_id numeric, p_start timestamp without time zone DEFAULT NULL::timestamp without time zone, p_finish timestamp without time zone DEFAULT NULL::timestamp without time zone)
RETURNS numeric
LANGUAGE plpgsql
SECURITY DEFINER
AS $function$
DECLARE
v_return numeric;
v_avail numeric;
v_demand numeric;
-- v_resourceid numeric;
v_resourceid bigint;
Targeted Fix in Release 16.0.3