random1 Posted July 15, 2008 Share Posted July 15, 2008 Are there some general rules of when to use indexes and when not to? - When should they be used? - What types of indexes are there? Quote Link to comment https://forums.phpfreaks.com/topic/114782-indexes-on-tables/ Share on other sites More sharing options...
Zwiter Posted July 15, 2008 Share Posted July 15, 2008 Primary keys must be indexed, and are indexed in most of the sgbd, and you set them as primary key. Foreigner keys should indexed, to optimized join queries. Then it depends on your application. Find some tutirials on that. In a few word, they will say that you can add indexes on others attribute you use often to search inside a table (WHERE). But the more indexes you have, the worse it gets when you insert a row. Quote Link to comment https://forums.phpfreaks.com/topic/114782-indexes-on-tables/#findComment-590436 Share on other sites More sharing options...
fenway Posted July 15, 2008 Share Posted July 15, 2008 There are some excellent stickies on this topic. Quote Link to comment https://forums.phpfreaks.com/topic/114782-indexes-on-tables/#findComment-590612 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.