Kendal Van Dyke

Friday, February 12, 2010 7 comments A + A -
Query Tuning Troubleshooting

Share This

  • Twitter
  • Google+
  • Linked In
  • Facebook

Related Posts

Query Tuning Troubleshooting
Newer Post Older Post Home

7 comments

Stephen said...

So then why did some servers create the stats on that column, while others didn't? Doesn't tracking this down become your next issue?

February 12, 2010 at 11:42 AM
Merrill Aldrich said...

Great sleuthing, great post. Thanks for sharing.

February 12, 2010 at 2:00 PM
Ralph B said...

Nice find Kendall!

February 12, 2010 at 6:23 PM
オテモヤン said...
This comment has been removed by a blog administrator.
February 13, 2010 at 9:33 AM
Anonymous said...

Nice post. Glad to hear you came to some explanation. Curious, did the comment on your original post about the query optimizer terminating early and not completing its optimization end up having anything to do with it?

February 16, 2010 at 10:20 AM
Andy Warren said...

Good follow up, though seems like still a piece or two of mystery remaining. And didn't Jack and I ask if the stats match??!

February 16, 2010 at 6:33 PM
Phil said...

Well, I've tried to reproduce this numerous times, and get very inconsistent results. It's not difficult to get the optimiser to choose a non-optimal plan with both sets of stats in place, but dropping the column stats doesn't always make it revert to the good plan. Also, running UPDATE STATISTICS almost always seems to resolve the "baad-plan" issue too.

Just once, I saw behaviour that seemed to mirror what you describe in your article, but I've only managed it once, even when running a single test script for repeatability and consistency.

Furthermore, I see very inconsistent results when trying to get the column stats to update automatically. Even following large table updates (5,000 rows - 50% of the table), the auto stats remain unchanged

September 17, 2011 at 8:24 PM

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Things You Need To Know If You Use DFS Replication
  • Disk Performance Hands On, Part 5: RAID 10 vs. RAID 5
  • SQL Server Management Studio 2008 Installation Walkthrough
  • Disk Performance Hands On, Part 2: RAID 10 Performance
  • Disk Performance Hands On, Part 6: RAID 10 vs. RAID 1

Labels

About Me Best Practices Career Data Mining Documentation Feature Requests Humor MagicPASS Meme Monday Mirroring Parameter Sniffing PASS Performance PowerShell Presentations Query Tuning Recognition Replication Scripts Security SQL Power Doc SQL Server 2005 SQL Server 2008 SQLH2 SQLRally SQLSaturday SYDI T-SQL Tuesday Tips Troubleshooting Updates VirtualBox Windows XML

What I'm Saying On Twitter

Tweets by @SQLDBA
Copyright © 2015 Kendal Van Dyke. All rights reserved.

Kendal is a database strategist, community advocate, public speaker, and blogger. A practiced IT professional with over 15 years of SQL Server experience, Kendal excels at disaster recovery, high availability planning/implementation, & debugging/troubleshooting mission critical SQL Server environments. Kendal is a Senior Consultant on the Microsoft Premier Developer Support team and President of MagicPASS, the Orlando, FL based chapter of PASS. Before joining Microsoft, Kendal was a SQL Server/Data Platform MVP from 2011-2016. [About Kendal] (http://lh3.googleusercontent.com/-wrW1fk8IiFE/Vr36w9dtRxI/AAAAAAAADCw/tVa4vTgLWIw/w139-h140-p/IMG_3503.JPG)