mysql -- 优化之ICP(index condition pushdown)

一、为了方法说明ICP是什么、假设有如下的表和查询:

create table person(
    id int unsigned auto_increment primary key,
    home_address varchar(16),
    first_name varchar(16),
    last_name varchar(16),
    index ix_first_name_last_name (first_name,last_name)
);

select * from person where first_name like 'abc%';

 

 

 

 

没有ICP之前:

  原先在没有ICP的时候、innodb会

 

 

 

----

posted on 2017-12-05 16:38  蒋乐兴的技术随笔  阅读(336)  评论(0编辑  收藏  举报

导航