Viewing 15 posts - 181 through 195 (of 1,114 total)
I removed a function which was used in the WHERE clause
say for example
select <columns>
from <tablename>
where <column_name> = dbo.fngetreportfield('Estimated','Final')
i modified the above query as
Declare @reportfield int
select @reportfield = dbo.fngetreportfield('Estimated','Final')
select <columns>
from <tablename>
where...
March 29, 2010 at 10:48 pm
I used
1) rownumber() over (partition ....order by ....)
2) TOP & CROSS APPLY
methods.
But I didn't see any difference in the execution time.
March 26, 2010 at 11:19 pm
Actually the table has more than 100000 records. So if i execute query like
select Assetid,min(date)
from t1
group by assetid
having min(date) <> inceptiondate
it is taking 1 minutes.
March 25, 2010 at 1:30 am
You are correct. But i would like to know is it possible to exclude the column in the return statement itself. i.e wwithout using the # table.
March 23, 2010 at 12:13 am
Lynn,
My code is displying 420 rows.
your's is displaying 344 rows.
Let me check the output.
February 11, 2010 at 7:54 am
Lynn,
I tried the below code
with final
as( select assetid,
...
February 11, 2010 at 7:51 am
I don't want to use DISTINCT or GROUP BY function. Because the table has 150,000 records.
February 11, 2010 at 7:22 am
Jeff,
For time being They agreed the current execution time. But i need to look into this for next month release.
Meanwhile i have been asked to fine tune one more procedure....
February 11, 2010 at 7:18 am
sample :
112007-10-12 00:00:00.0001214.400000005
112007-10-12 00:00:00.0001214.400000009
112007-10-19 00:00:00.0001224.000000005
112007-10-19 00:00:00.0001224.000000009
112007-10-26 00:00:00.0001235.300000005
112007-10-26 00:00:00.0001235.300000009
112007-10-31 00:00:00.0001241.500000005
112007-10-31 00:00:00.0001241.500000009
112007-10-31 00:00:00.0001339.945960005
112007-10-31 00:00:00.0001341.500000009
112007-10-31 00:00:00.0002339.765820004
122007-10-31 00:00:00.000239.600000005
Expected result:
112007-10-12 00:00:00.0001214.400000005
112007-10-26 00:00:00.0001235.300000005
112007-10-31 00:00:00.0001241.500000005
112007-10-31 00:00:00.0001339.945960005
112007-10-31 00:00:00.0002339.765820004
122007-10-31 00:00:00.000239.600000005
February 11, 2010 at 7:12 am
Also, how many rows are we talking about the "Quirky" update doing?
300000 rows(nearly).
February 2, 2010 at 10:09 am
Any Inputs?
January 27, 2010 at 10:51 pm
Network team is looking Latency issue.
January 27, 2010 at 10:51 pm
Jeff,
Code has been moved to PROD. Execution time is 26 seconds.
Dynamic Sql Part : 13 Seconds
Quirky Update(# table)...
January 27, 2010 at 10:49 pm
I saw huge performance improvement after implementing 'quirky method'. Yes, The execution time was reduced from 45 minutes to 30 seconds
I noticed one thing in the execution time.
Before Fine Tuning:
Running...
January 9, 2010 at 2:58 am
Viewing 15 posts - 181 through 195 (of 1,114 total)