Top 10 DB2 SupportTop 10 DB2 SupportTop 10 DB2 SupportTop 10 DB2 Support
Nightmares & How toNightmares & How toNightmares & How toNightmares & How to
Avoid ThemAvoid ThemAvoid ThemAvoid Them
Part 2 – Are your tools up to the job?
Image of a junior DBA
Long elapsed times for BI queries (over 30 mins!)
were causing one of our customers some serious
Checking their BI tool
Running DB2 Index Advisor
Creating additional indexes IIIIIII IIIIIII IIIIIII IIIIIII
So Triton stepped in…..
We used one of our favourite analysis tools:
From DBI Software
…and we discovered
A VERY high query execution cost
SQL being generated by the BI tool was captured and found to be a Cartesian join of
Each with more than 25M rows!
New indexes were not being used
We reworked the BI report definitions to add missing
The BI tool then generated correct JOIN predicates
The reports were re-run to successful completion in
under 2 minutes!
The Moral of the Story
Many applications (such as BI, ERP and Java
frameworks) are generating their own SQL – it can be
difficult to know exactly what’s getting thrown at
Correct tooling (and the skills to interpret them!) is