Hi
As per the explain plan its merging the data with low confidence. you are using PI on multile columns.
Please collect the stats on join columns individually it will solve your performance problem.
ON TGT.LOC_ID = SRC.LOC_ID
AND TGT.GNRC_ITEM_ID = SRC.GNRC_ITEM_ID
AND TGT.GNRC_ITEM_LVL_CD = SRC.GNRC_ITEM_LVL_CD
Thanks,
Venkat
↧