摘要:
mysql-not-in子查询-antijoin策略-Materialize with deduplication, 以TPCH-Q16为例分析not in子查询的antijoin策略, 并分析semi join的Materialize with deduplication
mysql版本:
[root@localhost ~]# mysqld --version
/usr/libexec/mysqld Ver 8.0.26 for Linux on x86_64 (Source distribution)
TPCH-Q16:
查询SQL:
select
p_brand,
p_type,
p_size,
count(distinct ps_suppkey) as supplier_cnt
from
partsupp,
part
where
p_partkey = ps_partkey
and p_brand <> 'Brand#34'
and p_type not like 'LARGE BRUSHED%'
and p_size in (48, 19, 12, 4, 41, 7, 21, 39)
and ps_