Msg#: 4261103 posted 12:10 pm on Feb 1, 2011 (gmt 0)
I have a table having 55 fields being used as filter. I am not getting how to apply index on the fields. Is there anyway to put a dynamic combinational index to be applied on number of fields used in where clause automatically or should i make one combined index for all values together regardless how many fields are being used in query?
Msg#: 4261103 posted 4:41 am on Mar 9, 2011 (gmt 0)
Sounds like something may be out of place here.
My first question to you is, what percentage of the table do your queries usually return after they execute? If this number is high enough an index will not help you all that much. Secondly, what type of queries are you running here? Reads? Updates? Both? You may also benefit from splitting this table up into smaller, more manageable tables. This really depends on what data this table contains, and how you are going to use it. Only then can you really determine how to make indices to optimize how your queries are going to run.