Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 15264

Index on All Columns in WHERE Condition?

$
0
0

Yesterday (2013-04-04) Kimberly Tripp & Paul Randal gave a great presentation at the Microsoft offices next to Radio City Music Hall in New York City.

Kimberly said: "Don't index all columns automatically in a WHERE clause."

I advise: "Index all columns in WHERE clause predicates."

My reasoning is that the caused damage is much greater by a missing index than the damage caused by an unnecessary index. Also since not all the forum readers are indexing experts, it helps that the rule is simple and easy to remember.

Naturally if you are indexing expert, you can be more selective.


Kalman Toth Database & OLAP Architect sqlusa.com
New Book / Kindle: Pass SQL Exam 70-461 & Job Interview: Programming SQL Server 2012




Viewing all articles
Browse latest Browse all 15264

Trending Articles