Can MySQL use multiple indexes for a single query?

后端 未结 4 1998
[愿得一人]
[愿得一人] 2020-12-02 09:32

Imagine a table with multiple columns, say, id, a, b, c, d, e. I usually select by id, however, there are multiple queries in the client app that u

4条回答
  •  长情又很酷
    2020-12-02 09:39

    Classically, MySQL can use one index per table reference in a given query. However, in more recent versions of MySQL, an operation called an index merge can take place and allow MySQL to use more than one index per table.

    http://openquery.com/blog/mysql-50-index-merge-using-multiple-indexes

提交回复
热议问题