patternsqlMinor
Should I rely on Database Engine Tuning Advisor for creating indexes?
Viewed 0 times
enginerelycreatingtuningindexesdatabaseforshouldadvisor
Problem
How should I rely on SQL Server 2012 Database Engine Tuning Advisor for creating indexes and statistics? I find more often than not, it generates overly complex indexes that (I think) would be more costly in index maintenance than the benefit of having this index.
If I cannot solely rely on Database Engine Tuning Advisor, is there a straightforward method? A book an article perhaps?
The missing index DMVs are not particularly useful because I am trying to think of indexes for brand new tables.
If I cannot solely rely on Database Engine Tuning Advisor, is there a straightforward method? A book an article perhaps?
The missing index DMVs are not particularly useful because I am trying to think of indexes for brand new tables.
Solution
Database Engine Tuning Advisor, like the DMVs such as sys.dm_db_missing_index_details and sys.dm_db_missing_index_groups give you a good place to start, as does the dmv sys.dm_db_index_usage_stats, to see which indexes are not being utilized and could be dropped.
However, these tools are never going to be as good as a skilled DBA making rational descisions about what indexes are really required. For example, DTA might recommend dropping an index that is hardly ever used and is expensive to maintain, but with business knowledge, you know that this index is key to running the monthly payroll.
In short - Use these tools to get a head start, but rely on your business knowledge, and performance troubleshooting skills as the final descision maker.
However, these tools are never going to be as good as a skilled DBA making rational descisions about what indexes are really required. For example, DTA might recommend dropping an index that is hardly ever used and is expensive to maintain, but with business knowledge, you know that this index is key to running the monthly payroll.
In short - Use these tools to get a head start, but rely on your business knowledge, and performance troubleshooting skills as the final descision maker.
Context
StackExchange Database Administrators Q#25047, answer score: 6
Revisions (0)
No revisions yet.