PG优化器分析最新分析和总结.pptx

PG优化器分析;优化器介绍;;优化器介绍;优化器介绍 Plan结构;逻辑查询优化;逻辑查询优化;逻辑查询优化;? 提升子链;? 提升子链;? 提升子链;? 提升子查询;? 提升子查询;? 化简条件;外连接消除(left/right/full join);外连接消除(left/right/full join);? 外连接消除条件 ? where和join条件保证右表不会有NULL值的行产生;? 条件下推 ? 为了连接前,元组数组尽量少;? 语义优化;MIN/MAX;group by优化;order by优化;------------------------------------------------------------------------------------------- Unique (cost=0.42..33891.21 rows=1000102 width=4) - Index Only Scan using tt1_id_key on tt1 (cost=0.42..31390.96 rows=1000102 width=4) (2 rows) postgres= explain select distinct(name) from tt1; QUERY PLAN -----------------------------------------------

文档评论(0)

1亿VIP精品文档

相关文档