Quantcast
Channel: SQLServerCentral » SQL Server 2012 » SQL Server 2012 - T-SQL » Latest topics
Viewing all articles
Browse latest Browse all 4901

Non-clustered Covering Indexes - Many w/few included columns vs Single w/many included columns

$
0
0
I have several non-clustered covering indexes on a table that have the same key columns with few included columns. I'm wondering if i can just create one NC covering index with all the included columns from each of the existing indexes. For example (K = key column, IC = included column), IDX 1 = K1,K2 + IC1,IC2IDX 2 = K1,K2 + IC3,IC4IDX 3 = K1,K2 + IC5,IC6IDX 4 = K1,K2 + IC4,IC6If I remove these and make one index (e.g., IDX = K1,K2 + IC1,IC2,IC3,IC4,IC5,IC5), will the queries be just as efficent? Or does it depend on the situation (i.e., query execution frequency)?

Viewing all articles
Browse latest Browse all 4901

Trending Articles