Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Article Discussions
»
Article Discussions by Author
»
Discuss Content Posted by Ranga Narasimhan
»
Missing Indexes in SQL Server 2005
47 posts, Page 1 of 5
1
2
3
4
5
»
»»
Missing Indexes in SQL Server 2005
Rate Topic
Display Mode
Topic Options
Author
Message
Ranga N
Ranga N
Posted Monday, September 15, 2008 9:48 PM
Valued Member
Group: General Forum Members
Last Login: Tuesday, January 15, 2013 12:25 PM
Points: 67,
Visits: 133
Comments posted to this topic are about the item
Missing Indexes in SQL Server 2005
Post #569915
Jeff Moden
Jeff Moden
Posted Monday, September 15, 2008 11:28 PM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 5:13 AM
Points: 32,906,
Visits: 26,793
Great info! I gotta try it. Thanks.
--Jeff Moden
"
RBAR
is pronounced "ree-bar" and is a "Modenism" for "
R
ow-
B
y-
A
gonizing-
R
ow".
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #569936
marshall.jones
marshall.jones
Posted Tuesday, September 16, 2008 12:42 AM
Grasshopper
Group: General Forum Members
Last Login: Wednesday, January 27, 2010 10:31 PM
Points: 15,
Visits: 69
this is super handy.
does anyone know if i can truncate these tables at any time safely (for example before running a test load for example).
Post #569961
GilaMonster
GilaMonster
Posted Tuesday, September 16, 2008 3:00 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 12:13 PM
Points: 37,729,
Visits: 29,991
The missing indexes DMVs are reset when the server starts. They can't be modified by a user.
One thing I would like to add is that the missing indexes DMVs should (like the Database Tuning Advisor) be taken as a suggestion and tested carefully before been applied. The missing indexes are less accurate than the DTA, as only single queries are considered when entries are added to that (the query optimiser adds the entries as it's optimising queries).
It doesn't take into account existing indexes, it doesn't compare with other similar suggestions already in the DMV and it doesn't considered clustered/nonclustered indexes.
They are very, very useful for index tuning, they just shouldn't be applies without consideration.
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #570022
SuperDBA-207096
SuperDBA-207096
Posted Tuesday, September 16, 2008 4:59 AM
UDP Broadcaster
Group: General Forum Members
Last Login: Wednesday, January 02, 2013 12:15 PM
Points: 1,443,
Visits: 711
GilaMonster (9/16/2008)
They are very, very useful for index tuning, they just shouldn't be applies without consideration.
Good point! Remember every action has consequences, so be sure to test!
Post #570081
kevriley
kevriley
Posted Tuesday, September 16, 2008 6:33 AM
SSCrazy
Group: General Forum Members
Last Login: Monday, May 13, 2013 12:01 PM
Points: 2,677,
Visits: 2,273
GilaMonster (9/16/2008)
It doesn't take into account existing indexes
Gail, can you explain what you mean ??
Kev
Post #570146
Charles Kincaid
Charles Kincaid
Posted Tuesday, September 16, 2008 8:23 AM
Right there with Babe
Group: General Forum Members
Last Login: Friday, May 17, 2013 9:18 AM
Points: 772,
Visits: 1,825
Good article. Great starting point. I one time saw a script that used this info to build the suggested indexes.
There is also some DMV about unused indexes. I'd love to see a set of scripts that would build the missing and deleted the unused.
ATB
Charles Kincaid
Post #570270
RBarryYoung
RBarryYoung
Posted Tuesday, September 16, 2008 8:24 AM
SSCrazy Eights
Group: General Forum Members
Last Login: Saturday, May 04, 2013 11:13 AM
Points: 9,855,
Visits: 9,374
Great article, I'm looking forward to using this.
-- RBarryYoung
,
(302)375-0451
blog:
MovingSQL.com
, Twitter:
@RBarryYoung
Proactive
Performance Solutions, Inc.
"Performance is our middle name."
Post #570271
Marios Philippopoulos
Marios Philippopoulos
Posted Tuesday, September 16, 2008 8:27 AM
SSCommitted
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 7:10 AM
Points: 1,824,
Visits: 3,477
Gail already mentioned some of the caveats of the missing-index DMVs.
Here are a couple more:
(1) Because the data in the DMVs are kept in memory, they are at risk of being flushed from the cache if there is memory pressure. Therefore, the DMVs need to be polled regularly and stored in a database for later analysis. This is something Gail has mentioned before in one of the posts here.
(2) The DMVs are no substitute for a strategy of regular index defragmentation and statistics updating. The optimizer may make the wrong choices when it constructs the 'best' execution plans if indexes are defragmented and/or the stats is not up-to-date and accurate. This can cause "wrong" data to be deposited to the DMVs and therefore erroneous information.
I absolutely love the DMVs. They have opened a much-needed window into the internals of the database engine and have made DBA work all the more interesting. I use them all the time.
We just need to keep these limitations in mind as well.
__________________________________________________________________________________
Turbocharge Your Database Maintenance With Service Broker: Part 1
Real-Time Tracking of Tempdb Utilization Through Reporting Services
Monitoring Database Blocking Through SCOM 2007 Custom Rules and Alerts
Preparing for the Unthinkable - a Disaster/Recovery Implementation
Post #570275
Marios Philippopoulos
Marios Philippopoulos
Posted Tuesday, September 16, 2008 9:05 AM
SSCommitted
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 7:10 AM
Points: 1,824,
Visits: 3,477
See this great link on the same topic:
Uncover Hidden Data to Optimize Application Performance:
http://msdn.microsoft.com/en-us/magazine/cc135978.aspx
__________________________________________________________________________________
Turbocharge Your Database Maintenance With Service Broker: Part 1
Real-Time Tracking of Tempdb Utilization Through Reporting Services
Monitoring Database Blocking Through SCOM 2007 Custom Rules and Alerts
Preparing for the Unthinkable - a Disaster/Recovery Implementation
Post #570331
« Prev Topic
|
Next Topic »
47 posts, Page 1 of 5
1
2
3
4
5
»
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.