IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Time taken by a DB2 Query increases


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Tue Jul 03, 2007 2:43 am
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
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

Moderator Emeritus


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

PostPosted: Tue Jul 03, 2007 3:46 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top