Question

wt is the difference b/w creating a non clustered index on combination of 5 columns and seperate non clustered index for each of these 5 columns?

in a user query ,some times it uses any of the 3 columns in fileter.For some other queries it may use some of the 2 columns etc..in this case is it wise to use a single index for all the 5 columns?

Was it helpful?

Solution

You dont need to create seperate index on,each searchable column as it will make write performance substantially worse

You can create one index for 5 columns.

Check out this link which tells you the best practices to create a index

NOTE:- It also depends on your where clause and group by clause of how frequently you are using the,

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top