Solved

Help with SQL Tuning Advisor Recommendations

Posted on 2008-10-16
2
1,086 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

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…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

867 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now