Query-Store

Category: query-store

Query Store Cleanup Can be Part of a Blocking Chain

Query Store Cleanup Can be Part of a Blocking Chain

By Kendra Little on April 18, 2018

Forgetfulness can lead to learning something new. This is a bit of a nightmare when it happens in production, but a treat when it happens in an isolated test system– and that’s how I learned this.

I left a bit of blocking open on my test VM, and forgot about it.

Continue reading

Auto-Tuning: Automatic Plan Correction is Cleared on Restart

Auto-Tuning: Automatic Plan Correction is Cleared on Restart

The new Enterprise Automatic Tuning feature in SQL Server 2017 may sound intimidating at first – one question I get a lot lately is whether or not there’s a future for DBAs. Will Auto-Tune mean we don’t need any more human tuning?

Well, not anytime super soon.

Continue reading

What is a Morally Equivalent Execution Plan, and Why Is It Useful?

What is a Morally Equivalent Execution Plan, and Why Is It Useful?

on March 12, 2018

I recently wrote a fairly complicated post, called “Forced Plan Confusion: Is_Forced vs Use Plan = True.”

You do NOT need to go read that post to understand this one. I think I’ve found simpler way to explain theΒ most important part of that post - and why it’s A Very Good Thing.

Continue reading

Attempting to Force a Narrow Plan on an Update with Query Store

Attempting to Force a Narrow Plan on an Update with Query Store

on November 15, 2017

Category: query-store

When you force a plan with Query Store, you may not get what you expect. Here’s an example.

Continue reading

sp_query_store_flush_db, Query Store, and Backups

sp_query_store_flush_db, Query Store, and Backups

on August 23, 2017

One of the cool things about Query Store is that you can back it up with the database.

This isn’t perfect for every situation, because you must back up the whole database. If you’ve got a multi-terabyte database, your Query Store isn’t super portable! But still, it’s great to have an option.

Continue reading