You are on page 1of 2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Study of DP_TEDW.OPERATIONAL_EVENT_KEY Table for rectifying severe performance
degradation.
--------------------------------------------------------------------------------
1> NO FALLBACK
2> NO BEFORE JOURNAL
3> NO AFTER JOURNAL
4> NO Other INDEX on DP_TEDW.OPERATIONAL_EVENT_KEY table, Other than the...
UPI on = 1> EVENT_OP_SYSTEM_ID
2> OP_SYSTEM_ID_MOD
3> SOURCE_SYSTEM_CODE
5>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
To find any possible Data Distribution Skew for table "Operational_Party_Key".
---------------------------------------------------------------------------
SELECT HASHAMP (HASHBUCKET
(HASHROW (EVENT_OP_SYSTEM_ID ,OP_SYSTEM_ID_MOD,
SOURCE_SYSTEM_CODE
)
)
) AS "AMP" ,
COUNT (*) AS "TUPLES"
FROM DP_TEDW.OPERATIONAL_EVENT_KEY
GROUP BY 1
ORDER BY 1;
---- ---------
AMP TUPLES
---- ---------
0 40874017
1 40874584
2 40880951
---------------
Skew [i.e. Deviation from the average (40876517.3)]
---------------------------------------------------
AMP 0 = 40874017 / ((40874017 + 40874584 + 40880951) / 3)=(1 - 0.99) = +0.01
AMP 1 = 40874584 / ((40874017 + 40874584 + 40880951) / 3)=(1 - 0.99) = +0.01
AMP 2 = 40880951 / ((40874017 + 40874584 + 40880951)/3)=(1 - 1.00010)= -0.0001
A VERY UNIFORM DISTRIBUTION IS CLEARLY EVIDENT.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
To find any possible Hash Collisions for data value in UPI of table
"Operational_Party_Key".
---------------------------------------------------------------------------
SELECT (COUNT (*) (FLOAT)) /
(COUNT (DISTINCT HASHROW(EVENT_OP_SYSTEM_ID, OP_SYSTEM_ID_MOD,
SOURCE_SYSTEM_CODE
)
)
) AS "HASH_COLLISIONs"
FROM DP_TEDW.OPERATIONAL_EVENT_KEY;
---------------
HASH_COLLISIONs
---------------
1
---------------
Absolutely wonderful statistics, NO HASH-COLLISIONS.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

You might also like