Performance of LIKE queries on multmillion row tables, MySQL

前端 未结 4 1664
感情败类
感情败类 2020-12-14 08:27

From anybody with real experience, how do LIKE queries perform in MySQL on multi-million row tables, in terms of speed and efficiency, if the field has a plain INDEX?

<
4条回答
  •  情歌与酒
    2020-12-14 09:05

    I recommend you to restrict your query by other clauses also (date range for example), because a LIKE '%something' guarantees you a full table scan

提交回复
热议问题