Viewing 15 posts - 25,051 through 25,065 (of 49,552 total)
Try updating statistics (with fullscan if necessary) and putting the parameters back in the queries.
If parameter sniffing is causing a problem on a fresh compile it means there's something wrong...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 7, 2011 at 4:45 pm
Jim Murphy (7/7/2011)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 7, 2011 at 4:40 pm
You can change this
SELECT * FROM @table WHERE (calories <> '' AND calories IS NOT NULL)
to this
SELECT * FROM @table WHERE calories <> ''
and it will still do what you...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 7, 2011 at 4:33 pm
Update statistics?
The proc can do parameter sniffing, meaning it looks at the values of the parameters and checks those against the stats to get a row estimate.
The statements can't sniff,...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 7, 2011 at 4:29 pm
dso808 (7/7/2011)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 7, 2011 at 3:57 pm
The range locks were the hint. That means serialisable or some foreign key-related stuff.
Serialisable's a nasty one. Extensive locks held for the duration of the transaction. Without care, it makes...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 7, 2011 at 2:36 pm
SQLkiwi (7/7/2011)
GilaMonster (7/7/2011)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 7, 2011 at 2:29 pm
Spam. Reported. No replies please.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 7, 2011 at 2:07 pm
Spam. Reported. No replies please.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 7, 2011 at 2:06 pm
iirc it's switching a partition in/out that a non-partition aligned index breaks, not splitting and merging.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 7, 2011 at 2:05 pm
Spam. Reported. No replies please.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 7, 2011 at 2:04 pm
Jayanth_Kurup (7/7/2011)
Don't really have many date based queries.
I've worked with a lot of them. When all queries against a table filter on the date (inserted date, transaction...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 7, 2011 at 1:49 pm
So does it have 75 or 103?
Am not following you.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 7, 2011 at 12:45 pm
How much memory does the server have total?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 7, 2011 at 12:36 pm
Please note: 3 year old thread.
Why would you recommend setting every single statistic in the database to not get automatically updated again? Very dangerous setting without some manual stats updates...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 7, 2011 at 12:33 pm
Viewing 15 posts - 25,051 through 25,065 (of 49,552 total)