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?
There are two major places where we can consider indexing: columns referenced in the WHERE clause and columns used in JOIN clauses. In short, such columns should be indexed against which you are required to search particular records.
This blog is good.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With