Welcome to WebmasterWorld Guest from 54.157.222.62

Forum Moderators: open

Message Too Old, No Replies

dynamic index

   
12:10 pm on Feb 1, 2011 (gmt 0)

5+ Year Member



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?
4:41 am on Mar 9, 2011 (gmt 0)

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 5+ Year Member



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.
11:48 am on Mar 9, 2011 (gmt 0)

5+ Year Member



Thanks for the reply.

1)About 25%
2)Reads
 

Featured Threads

Hot Threads This Week

Hot Threads This Month