Performance Tuning Implementation
Performance Tuning Implementation
Created by TCS
Date
Mar 18th, 2003
/var/www/apps/conversion/tmp/scratch_4/219387421.doc
Introduction
T2007 - 2 indexes need to be defined for this table, the details of which are
given below.
Following programs have queries that access Table T2007 that either perform
a tablespace scan or non-matching index scan.
1.
DJ00000
There is only one index defined on T2007, which cannot be used by the above
query. So new index X200702 needs to be defined with the following columns
CA_INDUSTRY_NO
CA_CURRENCY_CD
CA_BLOCK_DA
CA_CYCLE_NO
CA_DIGIT_NO
New index X200703 needs to be defined as follows which will then change the
tablespace scan to an matching index scan
CORP_CTL_ACCT_KEY
Existing Index
CE1.X200701
REFD_REQUEST_DT
REFD_NO
1
2
1 A
2 A
4 DATE
3 DECIMAL
New Indexes
CE1.X200702
CA_INDUSTRY_NO
CA_CURRENCY_CD
CA_BLOCK_DA
CA_CYCLE_NO
CA_DIGIT_NO
1
2
3
4
5
CHAR
CHAR
CHAR
CHAR
CHAR
2
2
5
1
1
CE1.X200703
CORP_CTL_ACCT_KEY
CHAR
10
Transaction
ARAW
ARAX
ARCE
ARCP
AREE
AREF
AREX
CPU Metrics
The details of transaction DJ00000 for any given week are as follows:
Year Month Day Program Hours Min
103
3
10 DJ00000
0
6
103
3
11 DJ00000
0
5
103
3
12 DJ00000
0
6
103
3
13 DJ00000
0
6
103
3
14 DJ00000
0
4
103
3
15 DJ00000
0
0
103
3
16 DJ00000
0
0
=
=
=
=
=
=
=
=
=
=
Secs
418.37
321.96
381.89
376.34
282.74
21.39
13.35
7536
1816.04 seconds
0.240982 seconds
7536 * 52
391872
90%
391872 * 0.9 * 0.240982
84990.672 seconds
8.87 * 0.0212 * 84990.672
$ 16,982