We replaced an aging system with a newer (faster 4-way) and presumably
better system. Perfomance for most queries has improved as one would
expect. However, we're getting slaughtered on performance for
summary-style queries. What took 2 minutes now takes 2-3 hours to
complete.
We backed up DB and restored it on a borrowed (somewhat inferior class)
box to see if we could do some diagnostics to determine why we had such
horrid performance. Much to our surprise, there was no performance
problem there. The main difference (other than slightly slower CPUs) is
the disk configuration. Our badly performing system uses RAID 5 on 9
disks. The borrowed machine is fully mirrored on 4 disks. Both machines
are running 7.2 FP12 on AIX 5.
Further investigation showed that when breaking the query down,
commenting out a join to a code lookup table restored performance. The
optimizer plan looked good with or without the code table join so it
wouldn't seem to impact it that much. Is there some wisdom that is
specific to tablespaces and RAID 5 (especially with regard to small
code lookup tables) that we need to take into account here? Are there
other db or dbm cfg parameters that we can look at?
Thanks,
Evan