explain
select a.* from v_test_20190514_a a where not exists(
select 1 from v_test_20190514_b b where a.path = b.path
)
a、b表path字段没有建立查询索引
a、b表path字段建立了查询索引
数据量:a表-2w左右;b表-20w左右 没有索引查询耗时:漫长-数分钟 有索引查询耗时:1秒内
explain
select a.* from v_test_20190514_a a where not exists(
select 1 from v_test_20190514_b b where a.path = b.path
)
a、b表path字段没有建立查询索引
a、b表path字段建立了查询索引
数据量:a表-2w左右;b表-20w左右 没有索引查询耗时:漫长-数分钟 有索引查询耗时:1秒内
mysql binlog查看指定数据库的方法。
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M