Yet another SQL Server enthusiast

2017-09-06

SQL Server 2017 New Features: Automatic tuning

Filed under: Uncategorized — sa @ 11:53 PM

Automatic tuning (or automatic plan correction) means that SQL Server can automatically switch to the last known good plan when the new execution plan is sub-optimal.

How ?

ALTER DATABASE current
SET AUTOMATIC_TUNING ( FORCE_LAST_GOOD_PLAN = ON );

A particular query can have (over time) one or more execution plans:
force-last-good-plan
In this example, the CPU time of fourth execution plan is higher compared with previous one (third execution plan). When AUTOMATIC_TUNING setting is ON, SQL Server will automatically switch to previous (third – green) execution plan.

References: https://docs.microsoft.com/en-us/sql/relational-databases/automatic-tuning/automatic-tuning

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: