Viewing 15 posts - 181 through 195 (of 459 total)
ChrisM@Work (2/23/2016)
SELECT COUNT(1)
FROM...
February 23, 2016 at 4:36 am
Auto Create Statistics and Auto Update Statistics are both on, Auto Update Statistics Asynchronously is off. I tried creating an index for all the affected fields, naturally it was too...
February 23, 2016 at 3:18 am
Just tried an alternate version, using subqueries with their own WHERE clauses. No improvement.
if exists (select 1
from (select Family_13000, Suborder_11000
from PaleoData.Tax.PodrobnostiTmp
where Family_13000 is not null and Suborder_11000 is...
February 23, 2016 at 1:56 am
Nope - EXISTS gives the same behavior - all four cores at 100%, grinding away.
February 23, 2016 at 1:18 am
The estimated number of rows was almost a million, the ACTUAL was over 59 million. Seems clear what he problem is, but WHY is it doing that? Apparently it is...
February 23, 2016 at 1:09 am
I've got it, sort of. I've been single-stepping through it in debug mode, and it appears to be the counts WITHIN THE IFs that are causing the problem. Here is...
February 23, 2016 at 1:00 am
Looking at the query plans - some of the estimates are wildly off. Estimated rows 331,232, actual rows 597.
February 23, 2016 at 12:06 am
Sean - no, not using transactions. Just started it with execution plans enabled, but since there are several hundred independent SELECT and UPDATE statements in the procedure, I suspect the...
February 22, 2016 at 11:48 pm
Ken McKelvey (2/22/2016)
There could be a problem with parameter sniffing or the proc could have been compiled with old stats.Try putting WITH RECOMPILE at the top of the procedure.
Nope -...
February 22, 2016 at 3:02 pm
GilaMonster (12/14/2015)
December 14, 2015 at 1:16 pm
Why would a UDF run more than once per row, unless it's used more than once per row?
December 14, 2015 at 7:21 am
Erland Sommarskog (11/16/2015)
I describe this technique in detail in an...
November 16, 2015 at 6:54 am
Erland Sommarskog (11/16/2015)
1) It is not the way you think it is, but procedure and table have different owners. Check the two objects in sys.objects,...
November 16, 2015 at 6:31 am
EdVassie (10/17/2015)
It sounds like your users have a Stage 4 predicate in their query...
They do, sort of, and office politics are not a problem. There is no management between us...
October 17, 2015 at 10:42 am
vedau (10/14/2015)
http://www.sqlskills.com/blogs/paul/correctly-adding-data-files-tempdb/
I'm familiar with that site. However, it has nothing to say about the situation I described.
October 14, 2015 at 3:00 pm
Viewing 15 posts - 181 through 195 (of 459 total)