Viewing 15 posts - 181 through 195 (of 465 total)
Here are the outputs from the SHOW_STATISTICS command:
IX_Podrobnosti_SubPhylum_5000Feb 23 2016 10:51PM7071513285100YESNULL70715
10SubPhylum_5000
NULL07071501
Sorry about the ugly output - if there is a tidy way to post table output, I don't know how...
February 24, 2016 at 12:08 pm
ScottPletcher (2/23/2016)
February 24, 2016 at 12:49 am
Jacob Wilkins (2/23/2016)
I must have misunderstood you earlier, though. I thought the stand-alone COUNT queries were...
February 24, 2016 at 12:43 am
Here is one queryplan that takes forever and returns a count of 0.
February 23, 2016 at 1:25 pm
Jacob, I think this article that you posted does, in fact, pinpoint the trouble: http://blogs.msdn.com/b/bartd/archive/2012/03/14/row-goals-gone-rogue.aspx
It matches what I recall, in that the most troublesome queries were those that returned zero...
February 23, 2016 at 11:28 am
I wound up putting a single-field index on every column that is used in this circus, about twenty of them. That has made the performance acceptable. I'll put up some...
February 23, 2016 at 8:32 am
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
Viewing 15 posts - 181 through 195 (of 465 total)