Support #13105

[SCP ID :##6353##] : Performancce issue when accssig dispute detaails

Added by Zahir Abd Latif about 2 years ago. Updated about 1 year ago.

Status:Closed - End of life cycleStart date:July 13, 2022
Priority:HighDue date:April 15, 2023
Assignee:Bramantyo Pujo Wiyono% Done:

100%

Category:-Spent time:-
Target version:-

Description

Hi,
Kindly attend below request:-

1. Access CI-Portal on Dispute Management
2. Click on "Search" ico to show all dispute
3. Click on "Eye" icon to show the detail of the selected dispute
4. After waiting (loaing) for apoximately 1 min, dispute details showe succesfully

WhatsApp Image 2022-07-13 at 8.04.39 PM.jpeg (139 KB) Zahir Abd Latif, July 13, 2022 21:44

WhatsApp Image 2022-07-13 at 8.04.38 PM (2).jpeg (85 KB) Zahir Abd Latif, July 13, 2022 21:44

WhatsApp Image 2022-07-13 at 8.04.38 PM (1).jpeg (106 KB) Zahir Abd Latif, July 13, 2022 21:44

WhatsApp Image 2022-07-13 at 8.04.38 PM.jpeg (177 KB) Zahir Abd Latif, July 13, 2022 21:44

History

#1 Updated by Sarifah Nurhafizah Nasihah Ibnuhajar about 2 years ago

  • Status changed from New - Begin Life Cycle to Development / Work In Progress
  • Assignee changed from Sarifah Nurhafizah Nasihah Ibnuhajar to Bramantyo Pujo Wiyono

#2 Updated by Bramantyo Pujo Wiyono about 2 years ago

  • % Done changed from 0 to 50

There is 2 query to DB that might be the cause of slowness, so we suggest to check whether this query already had index on the DB, if not yet index then we suggest to add it.

--This one to get data of historical reply on the dispute detail
SELECT * FROM CI_PORTAL.RPP_DISPUTE_HISTORY WHERE
REF_NUMBER = [VALUE] and
CHG_COUNT <> 0;

--This one to get detail data from some field on the dispute detail
SELECT * FROM CI_PORTAL.RPP_TRNX_DATA_LOG WHERE
BUSINESS_MSG_ID = [VALUE];

______________________________________________________________________
On the patch probably only can enhance for RPP_DISPUTE_HISTORY query because the query before are like this:
SELECT * FROM CI_PORTAL.RPP_DISPUTE_HISTORY WHERE
REF_NUMBER = [VALUE] and
CHG_COUNT <> 0 ORDER BY LAST_MODIFIED_DATE ASC;
Then i tried to remove the 'ORDER BY' takes only half time if compare with 'ORDER BY'

The patch above is not posible about remove the ORDER BY because the front end need it.

so now we only suggest to add index for those 2 query

#3 Updated by Tan Lee Yong about 2 years ago

Re-phrased:
There is 2 query to DB that might be the cause of slowness. So we suggest to check below 2 items:-
1) Does table CI_PORTAL.RPP_DISPUTE_HISTORY has indexed the "REF_NUMBER" column. If not, please "REF_NUMBER" column as Index in this table.
2) Does table CI_PORTAL.RPP_TRNX_DATA_LOG has indexed the "BUSINESS_MSG_ID" column. If not, please "REF_NUMBER" column as Index in this table.

Actual queries for reference:
--This one to get data of historical reply on the dispute detail
SELECT * FROM CI_PORTAL.RPP_DISPUTE_HISTORY WHERE
REF_NUMBER = [VALUE] and
CHG_COUNT <> 0;

--This one to get detail data from some field on the dispute detail
SELECT * FROM CI_PORTAL.RPP_TRNX_DATA_LOG WHERE
BUSINESS_MSG_ID = [VALUE];

#4 Avatar?id=2607&size=24 Updated by Rayvandy Gabbytian about 1 year ago

  • % Done changed from 50 to 100

already solved this items together with the "Table Partition" fix activity from case redmine ID 13312 which impact RPP_TRANS_LOG_DATA. Deployed on 15/04/2023.

#5 Avatar?id=2607&size=24 Updated by Rayvandy Gabbytian about 1 year ago

  • Due date set to April 15, 2023
  • Status changed from Development / Work In Progress to Closed - End of life cycle

Also available in: Atom PDF