Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Time taken by a DB2 Query increases

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Geethi

New User


Joined: 03 Mar 2007
Posts: 10
Location: US

PostPosted: Tue Jul 03, 2007 2:37 am    Post subject: Time taken by a DB2 Query increases
Reply with quote

Hi,

I am having a SELECT statement with DISTINCT, GROUP BY, CASE clauses. This is used to create a report. But each time I run the query, the total time taken by it, is increased. Please somebody tell me why this happen so.

Thanks in advance,
Geethi
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jul 03, 2007 2:43 am    Post subject:
Reply with quote

Hello,

Please post your full query, the definition of the table(s) referenced, approximately how many rows are in each table, and the growth rate for the tables. Do the tables have purge criteria (i.e. are rows regularly deleted or will this continue to grow with no restraint)?

Did this suddenly happen or has the time been increasing over some period of time.
Back to top
View user's profile Send private message
Geethi

New User


Joined: 03 Mar 2007
Posts: 10
Location: US

PostPosted: Tue Jul 03, 2007 2:55 am    Post subject: Re: Time taken by a DB2 Query increases
Reply with quote

So far the query was taking less than 5 minutes of time. Suddenly it started taking 380 sec, 480 sec, 720 sec and so on.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jul 03, 2007 3:46 am    Post subject:
Reply with quote

Hello,

Well, 5 min is 300 seconds, so it is not that big a jumo to 380. It sounds like the run time may increase exponentially rather than linear.

If you post the info requested earlier, we may be able to offer suggestions.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Run time proc edit Niki JCL & VSAM 7 Fri Jun 08, 2018 5:42 pm
No new posts JCL to set Return code when Time Out ... vinu78 JCL & VSAM 6 Wed May 30, 2018 11:27 am
No new posts Cobol program till a given time or fo... ankita agarwal COBOL Programming 7 Fri May 18, 2018 2:24 pm
No new posts How to force a select query to abend neo4u DB2 7 Mon Apr 23, 2018 1:36 pm
No new posts How syntax check at Bind time is diff... Poha Eater DB2 5 Wed Mar 21, 2018 9:16 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us