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秒内