View previous topic :: View next topic
|
Author |
Message |
Geethi
New User
Joined: 03 Mar 2007 Posts: 10 Location: US
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Geethi
New User
Joined: 03 Mar 2007 Posts: 10 Location: US
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|