October 11, 2013 at 10:10 am
I was approached by a Developer who created a view.
It takes 3 seconds to run from the developers PC.
It tasked 1:10 seconds when a BA or I execute the query.
If the BA logs into the sever and executes the query it still takes 1:10 seconds.
If the developer logs into the server it takes 3 seconds.
This is very odd.
Any ideas?
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
October 11, 2013 at 10:12 am
Welsh Corgi (10/11/2013)
I was approached by a Developer who created a view.It takes 3 seconds to run from the developers PC.
It tasked 1:10 seconds when a BA or I execute the query.
If the BA logs into the sever and executes the query it still takes 1:10 seconds.
If the developer logs into the server it takes 3 seconds.
This is very odd.
Any ideas?
I have lots of ideas but with no more details than it is slow for some people it is impossible to hazard any real guess.
What does the query look like? How about posting the actual execution plan at the bare minimum?
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
October 11, 2013 at 10:48 am
I'm sorry but Proprietary information would be disclosed if I posted the execution plan.
So consider this post closed.
btw, it is slow for EVERYONE except the developer that created the view. Very odd.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
October 11, 2013 at 10:55 am
Welsh Corgi (10/11/2013)
I'm sorry but Proprietary information would be disclosed if I posted the execution plan.So consider this post closed.
btw, it is slow for EVERYONE except the developer that created the view. Very odd.
There could be a zillion reasons for that. Maybe the where clause prevents some rows because of a userid or some other value. Maybe there are functions, maybe you have stale statistics somewhere, maybe you have...
Seeing the query could very likely shed some light on what it might be. Without some kind of information it is just guess work.
I hope you can figure it out.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
October 11, 2013 at 1:05 pm
Thanks!
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
October 11, 2013 at 3:05 pm
Welsh Corgi (10/11/2013)
I'm sorry but Proprietary information would be disclosed if I posted the execution plan.So consider this post closed.
btw, it is slow for EVERYONE except the developer that created the view. Very odd.
you can download SQL Sentry Plan Explorer...there is a free edition....it has the ability to anonymize the execution plan....which you could post
http://www.sqlsentry.net/plan-explorer/sql-server-query-view.asp
________________________________________________________________
you can lead a user to data....but you cannot make them think
and remember....every day is a school day
October 11, 2013 at 5:17 pm
J Livingston SQL (10/11/2013)
Welsh Corgi (10/11/2013)
I'm sorry but Proprietary information would be disclosed if I posted the execution plan.So consider this post closed.
btw, it is slow for EVERYONE except the developer that created the view. Very odd.
you can download SQL Sentry Plan Explorer...there is a free edition....it has the ability to anonymize the execution plan....which you could post
http://www.sqlsentry.net/plan-explorer/sql-server-query-view.asp
Thanks!
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
October 11, 2013 at 5:20 pm
Dumb question but how do you post an execution plan from start to finish?
Thanks.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
October 11, 2013 at 5:52 pm
Save it as .sqlplan (right click to save) and below the post editor, there's an attachments option.
Viewing 9 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply