Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 2 Thu Jan 19, 2017 1:31 am
No new posts Join in SQL Query vickey_dw DB2 2 Tue Jan 17, 2017 12:15 am
This topic is locked: you cannot edit posts or make replies. MQ setup query mohitsaini Java & MQSeries 4 Sun Jan 08, 2017 1:53 am
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us