This article covers when to user mysql multi column index and how does the order of column impact the query and index usage.
The following is a sample table which we’ll use for this article.
When does query uses index?
|Index||Query has FN and LN both||Query has only FN||Query has only LN|
To cover all types of queries, one option is to create one multiple column index (e.g. FN,LN) and one single column index on FN. This will avoid creation of extra redundant indexes.
Here is a youtube video describing this article.