Filtered indexes from DMVs?

  • Anyone come across a way to automate finding candidates for filtered indexes from the DMVs?

    Cheers,

    JohnA

    MCM: SQL2008

  • Can you expand on what you're thinking?

    The missing index DMVs (if those are the ones you mean) will never suggest filtered indexes, it's one of their limitations. I think it would take a lot of knowledge of the DB and a fair bit of investigation to tell if a suggested index could be made filtered or not.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    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
  • Gail,

    exactly, I was just wondering if anyone has come across a script that can query the DMVs for filtered index propositions.

    Long shot, I know...:ermm:

    Cheers,

    JohnA

    MCM: SQL2008

  • As I said, I think it would take a lot of knowledge of the database, the queries and the data to be able to say whether an index should be filtered or not.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    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

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply