Should I index a view that is converting data types?

  • traughberk (12/10/2010)


    That's what I was struggling with. How unique does something need to be in order to be considered "selective"? I have SSN, dates, and some other data, but none of it makes a record truly unique.

    A given column should be about 95% unique to be considered for an index, by itself. In combination, with other columns, again, the combination should break 95%. That, of course, is a rough rule of thumb.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

Viewing post 16 (of 15 total)

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