Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Approach Note
JSN-444
Document Control
File Name:
JSN444_ApproachNote_Ver1.21.doc
Group
RBPG
Revision No:
3.21
Last saved by
Raghuvir Naikuser
Creation Date:
Author
Raghuvir Naik
Problem Description
[REFRESH] Performance Improvement for RPT_FT_BKJWD0001 (table for a
report "List of Incomplete FT")
RPT_FT_BKJWD0001 (table for a report "List of Incomplete FT) which is run as
part of CBR REFRESH takes time. UPDATE takes longer in particular.
It took about 33 minutes in monthly batch in September 2015.
We checked the Explain Plan and waiting events to find out that TABLE
ACCESS FULL for "CBR_CI_CUST_NLS_INFO" may have taken time. This is
caused because of no filtering conditions defined for
"CBR_CI_CUST_NLS_INFO".
Since UPDATE aims at updating "RPT_FT_BJKWD0001", it would be sufficient
to refer only to the customer information available in "RPT_FT_BJKWD0001"
which means it does not have to scan all the records in the entire table.
Expected Behavior
Full scan of CBR_CI_CUST_NLS_INFO should be avoided to improve performance.
Proposed solution
1. Current UPDATE query will be modified to add one more condition as
below.
"t.cod_cust_natl_id = b.cod_cust_natl_id"
This would target only those customers which are part of
RPT_FT_BJKWD0001 table. Thus it is expected to improve the
performance.
2. Also new index will be added on CBR_BA_ACCT_STAT_AUD_TRAIL table
for columns (COD_ACCT_NO, DAT_CHANGE). Current function index
TRUNC (DAT_CHANGE) is less effective when data volume is large for a
single day.
3. We cannot eliminate the function index since it is being used in
AP_CBR_POP_BA_ACCT_STAT_AUD during refresh of table
CBR_BA_ACCT_STAT_AUD_TRAIL.
4. Inner Query on CBR_BA_ACCT_STAT_AUD_TRAIL will be modified as shown
below to access both the columns of the newly added index.
After Change update Statement
UPDATE RPT_FT_BJKWD0001 T
SET (NAM_PAYEE, COD_ACCT_NO, NAM_BRANCH) = (SELECT DISTINCT
NAM_CUST_FULL_KANA,
COPYRIGHT (C) 2015 Oracle Financial Services Software Limited.
3
Impacted Area
BJKWD0001 List of Incomplete FT Report
[REFRESH] RPT_FT_BKJWD0001