tec-4 Posted February 21, 2012 Share Posted February 21, 2012 Hi Everyone, If I had an index covering multiple columns would I need to have a separate single column index for the "root" column? Or does it being the main column in the multi-column index work just as well? For example, say i have the following index on these columns, and in this order: (County, Status, Type, SubType) Would having a single column index on County be of any benefit or simply a waste of space? Please let me know if I need to elaborate further or if more info is needed to make a correct decision. Thanks for the help! Link to comment https://forums.phpfreaks.com/topic/257492-does-a-multi-column-index-eliminate-the-need-for-a-single-column-index/ Share on other sites More sharing options...
fenway Posted February 22, 2012 Share Posted February 22, 2012 You are correct -- there is no benefit to having a single column index when you a multi-field index and the single column is the first in the mulit-column index. Link to comment https://forums.phpfreaks.com/topic/257492-does-a-multi-column-index-eliminate-the-need-for-a-single-column-index/#findComment-1319967 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.