Viewing 15 posts - 121 through 135 (of 220 total)
Gullimeel (5/26/2012)
--------------------------------------------------------------------------------
Next time I wont save the typing efforts because it has caused much more typing then i thought it would save me(not a nice optimization decision) so that discussion...
GulliMeel
Finding top n Worst Performing queries[/url]
Improve the performance of Merge Join(special case)
How to Post Performance Problem -Gail Shaw[/url]
May 26, 2012 at 4:37 am
Next time I wont save the typing efforts because it has caused much more typing then i thought it would save me(not a nice optimization decision:-)) so that discussion stays...
GulliMeel
Finding top n Worst Performing queries[/url]
Improve the performance of Merge Join(special case)
How to Post Performance Problem -Gail Shaw[/url]
May 26, 2012 at 3:50 am
Gullimeel (5/24/2012)
--------------------------------------------------------------------------------
I am aware of that bug and min on ascending order index wont cause the issue but max will do.I could have very well used min but i am...
GulliMeel
Finding top n Worst Performing queries[/url]
Improve the performance of Merge Join(special case)
How to Post Performance Problem -Gail Shaw[/url]
May 26, 2012 at 2:08 am
Gullimeel (5/25/2012)
--------------------------------------------------------------------------------
This is simple arithmatic that IO cost + cpu cost is the total operator cost.How optimizer is calculating IO cost or CPU cost that is explained very well in...
GulliMeel
Finding top n Worst Performing queries[/url]
Improve the performance of Merge Join(special case)
How to Post Performance Problem -Gail Shaw[/url]
May 25, 2012 at 2:53 pm
This is simple arithmatic that IO cost + cpu cost is the total operator cost.How optimizer is calculating IO cost or CPU cost that is explained very well in Joe...
GulliMeel
Finding top n Worst Performing queries[/url]
Improve the performance of Merge Join(special case)
How to Post Performance Problem -Gail Shaw[/url]
May 25, 2012 at 2:34 pm
So it isn't necessarily same algorithm used by the Query Optimizer, correct?
I told the optimizer alogorithm to calculate the cost based on IO and cpu cost..
GulliMeel
Finding top n Worst Performing queries[/url]
Improve the performance of Merge Join(special case)
How to Post Performance Problem -Gail Shaw[/url]
May 25, 2012 at 2:27 pm
Gullimeel (5/25/2012)
--------------------------------------------------------------------------------
Paul.
In attached screenshot if you will see that the IO cost estimation is 185.2 and CPU estimation cost is around 4.8. Then total subtree cost should have been around...
GulliMeel
Finding top n Worst Performing queries[/url]
Improve the performance of Merge Join(special case)
How to Post Performance Problem -Gail Shaw[/url]
May 25, 2012 at 2:17 pm
Guys,
Thanks for the assistance!
I removed the reference to "AllRecentWages" and got 850k records in 10 seconds, so that was certainly a big part of the issue!
Now i need to figure...
GulliMeel
Finding top n Worst Performing queries[/url]
Improve the performance of Merge Join(special case)
How to Post Performance Problem -Gail Shaw[/url]
May 25, 2012 at 2:15 pm
Paul.
In attached screenshot if you will see that the IO cost estimation is 185.2 and CPU estimation cost is around 4.8. Then total subtree cost should have been around 190.15...
GulliMeel
Finding top n Worst Performing queries[/url]
Improve the performance of Merge Join(special case)
How to Post Performance Problem -Gail Shaw[/url]
May 25, 2012 at 2:10 pm
You are welcome...
GulliMeel
Finding top n Worst Performing queries[/url]
Improve the performance of Merge Join(special case)
How to Post Performance Problem -Gail Shaw[/url]
May 25, 2012 at 1:49 pm
I think the real issue is the table AllRecentwages where the actual rows are 95 (estimated is 16763) for 373k rows plan but is 4.4. million(estimated is 8000+) for 473K...
GulliMeel
Finding top n Worst Performing queries[/url]
Improve the performance of Merge Join(special case)
How to Post Performance Problem -Gail Shaw[/url]
May 25, 2012 at 1:28 pm
Try to execute the query with 475 K rows with recompile and see what kind of plan is being generated..
See the first table profiles which returns around 373 K...
GulliMeel
Finding top n Worst Performing queries[/url]
Improve the performance of Merge Join(special case)
How to Post Performance Problem -Gail Shaw[/url]
May 25, 2012 at 12:56 pm
Use the following
insert into @temp1 select "account's value"
or
insert into@ temp1 select 'account''s value')
GulliMeel
Finding top n Worst Performing queries[/url]
Improve the performance of Merge Join(special case)
How to Post Performance Problem -Gail Shaw[/url]
May 25, 2012 at 12:36 pm
Post both actual execution plans.Otherwise from this statement nothing can not be said..One possible reason could be that when you run proc with 350K rows it generated one plan and...
GulliMeel
Finding top n Worst Performing queries[/url]
Improve the performance of Merge Join(special case)
How to Post Performance Problem -Gail Shaw[/url]
May 25, 2012 at 12:21 pm
--Table Driven version.
SELECT T1.ID, T1.CHILD_ID, T2.ID
FROM DBO.table_1 T1 WITH (NOLOCK)
LEFT OUTER JOIN DBO.table_2 T2 WITH (NOLOCK)
ON T1.CHILD_ID = T2.ID
WHERE ISNULL(T1.ISDELETED,0)=0
AND ISNULL(T2.ISDELETED,0)=0
SELECT T1.ID, T1.CHILD_ID, T2.ID
FROM DBO.table_1 T1 WITH (NOLOCK)
LEFT OUTER JOIN...
GulliMeel
Finding top n Worst Performing queries[/url]
Improve the performance of Merge Join(special case)
How to Post Performance Problem -Gail Shaw[/url]
May 25, 2012 at 12:01 pm
Viewing 15 posts - 121 through 135 (of 220 total)