What this Query Store bug tells me?

You may have heard that there’s a bug in SQL Server 2016 related to the query store in non-Enterprise editions.  This is a less than dangerous bug, in that in editions of SQL Server 2016 other than Enterprise Edition when the space allocated to the query store fills it stops collecting data.  Nothing more dangerous than that.475143348_556d950243_b

What this tells me is that at some point during the development cycle Query Store the Query Store was going to be Enterprise Edition only.

But thankfully someone at Microsoft released this would be an awful thing and they introduced it into all the editions.

This also means that this should be pretty quick to fix in a later CU as it’ll just be a matter of moving the call to the function to clean that up from inside as if/then block to outside the if/then block.

Hopefully this will be that easy to fix, and a fix can get rolled out in one of the first couple of CUs.  Until then, just setup a job to clean out the old data from the query store nightly.  If you are hitting this bug, I’d also recommend increasing the size of your query store to 1 Gig (or 5 on a really busy system) to help avoid the bug and make sure that you have enough room for data in the query store between flushing the data.

Denny

The post What this Query Store bug tells me? appeared first on SQL Server with Mr. Denny.

Share

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Trust DCAC with your data

Your data systems may be treading water today, but are they prepared for the next phase of your business growth?