[SQL SERVER] [Performance] how to use the DTA rapid analysis and tuning SQL query performance

[SQL SERVER] [Performance] how to use the DTA rapid analysis and tuning SQL query performance


A few days ago a friend asked if there was the free software can analyze and adjust SQL in Oracle,

But in fact, there is a built-in version after Oracle10g pretty good SQL Tunning Tool,

SQL Server that it? Fortunately, in SQL2008 version also built a good SQL Tunning Tool,

This came about how to use the DTA rapid analysis and tuning SQL queries and improve performance.

Suppose we have achieved poor query performance-related syntax

image

image

CPU:2218ms , Logical reads:89481,QC:67.1701

DTA carried out using SQL Tunning

image

Open DTA.

General tab

image

This file contains the contents of all the poor performance of the database query syntax,

Here I select the file (of course you can also select specific data sheet).

image

Check all the data in the database tables.

Fine-tuning options tab

image

If you have pressure to save space, you can set the maximum space limit.

Select the recommendations are offline (decrease Server performance overhead).

The following types can be selected according to their own needs

image

Examples of the design structure of the database to be used:

Here I select index and Table View, and check the Include filtered index.

To segmentation strategy adopted:

Select no data division.

Examples of structural design of the database you want to keep:

Choose to keep all the PDS.

When the micro-strip options are selected after a good start to perform analysis,

DTA will give suggestions according to your type of check and produce relevant reports.

Open analysis

image

DTA recommendations

image

image

image

image

You can see estimated improve performance up to 76% (typically in excess of 80% will be directly applied to me),

DTA while giving statistics and the proposal to establish a non-clustered index, and here I directly apply the proposal.

Copy and modify Recommendation Syntax

image

The establishment of statistics.

image

The establishment of a non-clustered index.

Executing the same query again

image

image

CPU:1844ms , Logical reads:26935,QC:14.4347

in conclusion:

SQL2008DTA ​​Tools personally think that reference count full high (accuracy is quite good),

But the design and proper indexing tool alone is not enough alone,

DBA only understand the various index types properties, differences and limitations,

And try to establish a lot of different index types,

Only the actual walk can really understand SQL Tunning and cumulative adjustment experience.

Original: Large column  [SQL SERVER] [Performance] how to use the DTA rapid analysis and tuning SQL query performance


Guess you like

Origin www.cnblogs.com/chinatrump/p/11516414.html