Welcome to WebmasterWorld Guest from 54.159.50.111

Forum Moderators: open

Message Too Old, No Replies

dynamic index

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

Junior Member

5+ Year Member

joined:Apr 15, 2010
posts: 126
votes: 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?
4:41 am on Mar 9, 2011 (gmt 0)

Senior Member

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

joined:Nov 12, 2005
posts:5966
votes: 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.
11:48 am on Mar 9, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:Apr 15, 2010
posts: 126
votes: 0


Thanks for the reply.

1)About 25%
2)Reads