September 6, 2010 at 1:42 pm
This query runs slower than expected (compared to other similar queries on the same database and tables)
Eg.
Select table1.x, table2.y from table1 join table2 on table1.a = table2.b
What are some likely cause of the problem.
September 6, 2010 at 1:47 pm
No where clause.
No index on the columns being joined.
No index on the columns in the where clause (just in case you didn't specify it in your post).
Using functions on columns in either the join or where clauses.
Statistics out of date.
Edit: You might want to look at the "Performance Problems" link in my signature.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 8, 2010 at 8:50 pm
anusha_yapa (9/6/2010)
This query runs slower than expected (compared to other similar queries on the same database and tables)Eg.
Select table1.x, table2.y from table1 join table2 on table1.a = table2.b
What are some likely cause of the problem.
Great post! It's very nice. Thank you so much for your post.
__________________
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply