MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Parameters for degradation of SQL Performance.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
analyst
Beginner


Joined: 10 May 2007
Posts: 11
Topics: 8

PostPosted: Tue Sep 04, 2007 7:48 am    Post subject: Parameters for degradation of SQL Performance. Reply with quote

" There is an existing SQL but of late suddenly, it is taking too much time,without changing any thing in that.What will be the causes and how you go about increasing the performance of that?"

I came across thru the above question in an interview,I replied him I will do RUNSTATS to get the latest statistics and check any index is dropped on the table etc..But he was not interested in those answers.

Could anybody please let me know,how you go about this when you face the above problem and suggest few things.Thanks for your replies in advance.
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue Sep 04, 2007 8:42 am    Post subject: Reply with quote

Start with an EXPLAIN. Especially before RUNSTATS. You need a benchmark.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
jsharon1248
Intermediate


Joined: 08 Aug 2007
Posts: 291
Topics: 2
Location: Chicago

PostPosted: Tue Sep 04, 2007 9:06 am    Post subject: Reply with quote

That open ended question only leads to more questions as there is not enough information to make an informed judgement. How sudden was the change? How drastic was the change? How often does the SQL run? Is the problem SQL updating or only selecting? If the SQL is updating how often does it commit? Has the data volume changed? Have a lot of rows been deleted? How current are the stats? Are there any new triggers? When was the last REORG? Is the SQL consistently bad, or only for certain host variables/parameter markers? Is there a noticeable slow-down of other processes or is it isolated this one? Any recent DB config changes?

REORGs with RUNSTATS might resolve the issue, but the first step to resolve would probably be an EXPLAIN to determine the access path. Compare that to what you think it should be. Eliminate potential causes until you find the most likely and then make a recommendation.
Back to top
View user's profile Send private message
videlord
Beginner


Joined: 09 Dec 2004
Posts: 147
Topics: 19

PostPosted: Tue Sep 04, 2007 9:58 am    Post subject: Reply with quote

1. check the current table status, e.g. REORG needed? RUNSTATS needed?
2. Monitor the SQL running, e.g. check DB2PE report, I/O problem? lock contention? system issue?
Back to top
View user's profile Send private message
analyst
Beginner


Joined: 10 May 2007
Posts: 11
Topics: 8

PostPosted: Tue Sep 04, 2007 7:03 pm    Post subject: Thanks to you all Reply with quote

Thanks to you all for your valuable responses.I will start answering with EXPLAIN and proceed with REORG,RUNSTATS,monitoring etc..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group