BK_GRP_PS_DD
Cardinality - 159979
Indexes
1. index on the following columns (CTRN_GROUP_NUMBER, PS_DED_DATA_TYPE, PS_DED_NUM)
I have Mentioned only the indexes that I felt are relevant.
The program with this query runs for more than an hour. CPU Time was 4.94. As the tables are not very huge and this being a simple query I just wanted to know if I can improve the performance of the query.
After explain the Plan table showed that index are being used for all the tables. The match cols is 3 for BK_GRP_PS_DD and it is 1 for the other 3 tables.
I was wondering if increasing the match cols for the BK_PMT_TRAN will help. And the only column I can include in the query is PROCESS_D (the 4th column in the index of this table)
FROM BK_PRTCPNT_MSTR B
inner join BK_PMT_TRAN A on
B.TRAN_TRAN_KEY = A.TRAN_TRAN_KEY
AND A.CHK_NUM = '12345'
AND A.PAY_D = '2008-08-08'
inner join BK_GRP_MASTER C on
B.CTRN_GROUP_NUMBER = C.CTRN_GROUP_NUMBER
inner join BK_GRP_PS_DD D on
C.CTRN_GROUP_NUMBER = D.CTRN_GROUP_NUMBER
AND D.PS_DED_DATA_TYPE = 'PS'
AND D.PS_DED_NUM = '53'
WHERE B.SSNO_SOC_SEC_NUM = '123456798'
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum