Solved

Help with SQL Tuning Advisor Recommendations

Posted on 2008-10-16
2
1,089 Views
Last Modified: 2012-05-05
i'm playing around with the Tuning Advisor...
in the index recommendations, i can see where it's recommending an index:
_dta_index_tablename_blahblah

i can see that the index recommendation covers several columns by looking at the Target of Recommendation.
1.  how do i know what type of index it is recommending?

2.  should i always take the Tuning recommendation?  for example, if i'm running the advisor on a query that isn't executed all that often, and the recommendation is to create a covered index on a table, and i have another query that does get executed often and uses different columns in the same table (but not all of the columns in the covered index), could i unintentionally be causing overhead from that covered index when changes are made to the table?

3. the Tuning Advisor is also recommending something called dta_stat.  is that statistics, and if so, is it just saying the statistics should be updated?
0
Comment
Question by:zephyr_hex (Megan)
2 Comments
 
LVL 60

Accepted Solution

by:
chapmandew earned 250 total points
ID: 22735626
>>should i always take the Tuning recommendation?

Absolutely not.  In fact, I rarely do.  I don't use it that much, just when I want to get a general idea as to what fields should have indexes.  Never implement them directly...always research the ideas it gives you....and take them at that...ideas.
0
 
LVL 35

Assisted Solution

by:David Todd
David Todd earned 250 total points
ID: 22735765
Hi,

If the second query that is executed a lot has its own indexes and is a select only, the additional covering index will have little or no effect.

On the other hand, if the second query involves inserts/updates/deletes, then any additional index will tend to slow that process down.

Look and see how much improvement Tuning Adviser things it will get - is 5% worth it? Maybe. is 50% + worth it, quite likely.

That is, if one or several recommendations gets 80% say, and the rest are small, then the two that give you the 80% improvement are the ones you need to concentrate on, and maybe completely ignore the others.

HTH
  David

PS I noted that you list yourself as intermediate. Chapmandew is GENIUS or better, and probably can transverse the index chain in his sleep. Definitely take note of the Tuning Advisers recommendations, but verify them. Use it as a learning tool, and do verify everything, until you get to Genius <grin>
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
best counters for cpu high usage 3 32
Inserting oldest record into new table. 5 25
insert wont work in SQL 14 22
SQL Function NOT ROUND 9 10
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question