Link to home
Start Free TrialLog in
Avatar of Jim Youmans
Jim YoumansFlag for United States of America

asked on

DB2 Explain Plan takes forever

DB2 10.5 on Windows Server 2012

I can have a query that takes 3 seconds to run and then when I look at the explain plan, it takes 2-5 minutes to generate.  And it seems to be getting slower.  

How can I speed this up?  In my QA environment the same operation takes like 20 seconds to generate.

Jim
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

That seems pretty weird, Jim.  It sounds like a resource conflict (perhaps a lock?) is getting in the way.  An explain plan should generate quite quickly.



Avatar of Jim Youmans

ASKER

On my QA and Stage servers it does, but on the busy prod server can take up to 5 minutes.  I thought maybe some of the tables that explain uses needed to be cleared or something.
ASKER CERTIFIED SOLUTION
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial