随笔分类 -  Query Optimization

上一页 1 2

SubQuery优化
摘要:https://zhuanlan.zhihu.com/p/60380557 子查询,分两种情况, 对于在From中的,称为‘derived table’,这种场景比较简单 对于在select,where中的,scalar表达式,这是主要要考虑的对象,因为这种情况cross了relational和sc 阅读全文

posted @ 2019-08-15 15:15 fxjwind 阅读(1105) 评论(0) 推荐(0)

Calcite分析 - RelTrait
摘要:RelTrait 表示RelNode的物理属性 由RelTraitDef代表RelTrait的类型 RelTraitDef,主要可以分为3种, RelCollationTraitDef,排序 RelDistributionTraitDef,分布 ConventionTraitDef,转换 RelTr 阅读全文

posted @ 2019-08-12 15:36 fxjwind 阅读(1822) 评论(0) 推荐(0)

fxjwind Calcite分析 - Volcano模型
摘要:参考,https://matt33.com/2019/03/17/apache-calcite-planner/ Volcano模型使用,分为下面几个步骤, //1. 初始化 VolcanoPlanner planner = new VolcanoPlanner(); //2.addRelTrait 阅读全文

posted @ 2019-08-09 10:47 fxjwind 阅读(1855) 评论(0) 推荐(0)

Calcite分析 - Rule
摘要:Calcite源码分析,参考: http://matt33.com/2019/03/07/apache-calcite-process-flow/ https://matt33.com/2019/03/17/apache-calcite-planner/ Rule作为Calcite查询优化的核心, 阅读全文

posted @ 2019-07-31 21:04 fxjwind 阅读(2255) 评论(0) 推荐(0)

上一页 1 2