Viewing 15 posts - 1 through 15 (of 16 total)
Thanks for the reply.
January 5, 2008 at 8:12 pm
September 8, 2005 at 5:17 pm
The slowness WAS due to Parameter Sniffing. I tried some of the techniques to overcome that and it solved the problem. Thanks for your suggestions.
September 8, 2005 at 2:23 pm
Thanks. The link was very useful. It solved the problem.
September 8, 2005 at 2:21 pm
Ray,
Thanks for your reply. Clearing the procedure cache definitely helped. It seems to me that for the same stored procedure, there is one cached execution plan for Query Analyzer and...
September 7, 2005 at 6:37 pm
Remi,
Good solution. Using a table function definitely improved the performance. It takes 10 sec compared to 5 sec without using a function at all (I guess that's expected) but definitely...
July 11, 2005 at 9:05 pm
but the timespan can be large, ie. from 2005/01/01 to 2005/01/03 AND from 12:00am to 11:59pm is also a possibility
July 11, 2005 at 7:50 pm
the former case ... from 2005/01/01 to 2005/01/03 AND only from 12:30 to 15:55 for each day ...
July 11, 2005 at 7:46 pm
My final query reads like this. I'm not using any functions and the BETWEEN clauses should filter out most of the records from the large table making it run faster.
CREATE...
July 11, 2005 at 6:29 pm
I already have the date limitation in place, which is how we got the query to run in 5 sec as the table is pretty big with about 300 million...
July 11, 2005 at 3:41 pm
Remi,
Thanks for your response. The actual condition I'm using goes something like this ..
WHERE DATEPART(HOUR, CurDate) > @StartHour
AND DATEPART(MINUTE, CurDate) > @StartMinute
AND DATEPART(HOUR, CurDate) < @EndHour
AND DATEPART(MINUTE, CurDate) > @EndMinute
CurDate is one...
July 11, 2005 at 2:57 pm
Remi,
Thanks for your suggestion. Could you please post an example of using a view versus using a table function for this purpose?
July 9, 2005 at 11:22 am
I guess my example should have been better. My query could also look like this:
select Number from table_1
where MY_CONDITION
ELSE...
July 8, 2005 at 7:39 pm
Thanks to both of you for your valuable suggestions. We are going to carry out some tests based on them and see what we get. Shall post it here if...
December 6, 2004 at 1:25 pm
I accept that normalizing the tables would solve many problems. But I have this other table ShopPopulation that contains the number of people of different age groups that are present...
December 2, 2004 at 12:52 pm
Viewing 15 posts - 1 through 15 (of 16 total)