I upgraded our databas from v7.x to 8.1 and performance just went down the tubes. Could someone perhaps indicate some reason why this may have happened?
One report that used to run in 22 minutes now takes 63 minutes...
If you made no precautions before performing the upgrade you will probably have little chance of checking the old settings..
Reorg will rebuild a table so accessing data will require minimum amount of I/O. Runstats will enable the optimizer to choose the most efficient query path.
Personallly , I do not expect that upgrading would have effect on these matters, but I cannot back that up with proof ..
Some other elements to consider:
1. DFT_QUERY_OPT
This is a setting ranging from 1 to 9. Default is 5. The higher the value the longer DB2 takes to calculate a efficient path. For complex SQL this can be beneficial. Perhaps upgrading has reset this value back to a default.
2. HASH Joins
This setting has to be enabled by the DBA to be available. If your queries use joins over non-indexed fields, then a HASH join could very well speed up things by 3-fold.
Since enabling hash joins is pretty 'vague' upgrading may have reset this option.
Reset it with:
Code:
db2set DB2_HASH_JOIN=ON
from db2 clp
If hash joins are enabled you should check the SORTHEAP size. This is set at 256x4Kb by default, but it may have been enlarged during working with version 7.
I think you should try to find out whether your version 7 may have tuned in the past and rectify accordingly...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.