Viewing 15 posts - 736 through 750 (of 1,825 total)
The Dixie Flatline (7/1/2010)
July 2, 2010 at 6:44 am
CirquedeSQLeil (7/1/2010)
Jack Corbett (7/1/2010)
GilaMonster (7/1/2010)
July 1, 2010 at 11:57 pm
I took the liberty of forwarding on a simpler example of this to Connor Cunningham.
Not one but two blogs resulted...
http://blogs.msdn.com/b/conor_cunningham_msft/archive/2010/07/01/conor-vs-join-algorithms.aspx
http://blogs.msdn.com/b/conor_cunningham_msft/archive/2010/07/01/conor-vs-udfs-in-joins.aspx
July 1, 2010 at 8:50 am
Check out simon sabins recent 24 hours of pass session
http://www.sqlpass.org/24hours/2010/Sessions/HighPerformanceFunctions.aspx
July 1, 2010 at 8:42 am
Just out of interest what a the rowcounts of the two table involved ?
July 1, 2010 at 5:03 am
Glad to of helped.
Though ,
A) Ensure that your statistics are upto date as Gail suggested.
B) Work on Getting rid of the function altogether (inline table functions are cool), i...
July 1, 2010 at 4:56 am
The biggest change is that the join is now a nested loop rather than a hash match.
You could try
Select Distinct t.MatchValue,M.MASTERname,M.MASTERCODE
from MASTER_TABLE M
INNER HASH JOIN
DB2..BufferTable t where
dbo.fnMyFunction(c.M.MASTERname)...
July 1, 2010 at 3:19 am
Eeeek 🙂
Scrap that entirely.
Scalar UDFs perform very poorly. For Performance reason, here i would probably add a persisted calculated column for the processed (ie cleaned) values.
http://www.kodyaz.com/articles/sql-server-computed-column-calculated-column-sample.aspx
July 1, 2010 at 1:08 am
June 30, 2010 at 2:05 am
Coincidence ? , homework ? or left hand not talking to right hand ?
Both similar problems , 2000 to 2008 upgrade , udf performance
http://www.sqlservercentral.com/Forums/Topic945233-392-1.aspx
http://www.sqlservercentral.com/Forums/Topic945210-392-1.aspx
June 30, 2010 at 1:55 am
Now cross posted
June 30, 2010 at 1:26 am
IMO , table variables should be avoid unless you are using a small (100 ish) number of rows.
http://www.sql-server-performance.com/articles/per/temp_tables_vs_variables_p1.aspx
That being said , Function calls are generally also wrong as they lead...
June 30, 2010 at 1:11 am
Viewing 15 posts - 736 through 750 (of 1,825 total)