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? 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. 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. Link to comment https://forums.phpfreaks.com/topic/114782-indexes-on-tables/#findComment-590612 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.