In my program I have very few inserts, and any which are run frequently are not needed instantly and therefore have been changed to INSERT DELAYED
. Should I go through my code and see which fields are referenced in the WHERE
clause and add an index for each of them? If so what type of index do I use? Is it just inserts that are slowed down?
Also can I use these indexes on any data type?