首页> 外国专利> System and method for reducing compile time in a top down rule based system using rule heuristics based upon the predicted resulting data flow

System and method for reducing compile time in a top down rule based system using rule heuristics based upon the predicted resulting data flow

机译:用于基于规则的启发式方法基于预测的结果数据流减少基于自上而下规则的系统中的编译时间的系统和方法

摘要

The present invention applies one or more pruning heuristics to the expression, the binding, and/or the substitute during a database query optimization process. The heuristics identify certain rules that can be eliminated by either not applying the rules and/or not implementing the rules for a given expression and context (if any) based upon one or more flow rates of the expression. The pruning heuristics can eliminate the application of rules based upon the flow rates of the binding or substitute, for example. Examples include (1) not applying (cutting) a MergeJoin rule for a join expression when an inner table is small enough to be stored in a memory space that is allocated for a HashJoin; (2) not applying implementation rules on the substitute of a left-shift rule for an expression if the resulting input data flow rate from the left child of the join is significantly larger in the substitute than in the binding; (3) not applying the join to TSJ (tuple substitute join) rule if the data flow output of the join expression is significantly larger than the data flow input from the inner child of the join expression; or (4) not applying implementation rules on the substitute join expression of a left shift rule if the number of cross products increases and if the data flow rate from the left child is increases.
机译:本发明在数据库查询优化过程中将一种或多种修剪启发式应用于表达式,绑定和/或替代。启发式方法可以识别某些规则,这些规则可以通过不应用规则和/或不基于给定表达式和上下文(如果有)的规则对表达式的一个或多个流率实施规则来消除。例如,修剪启发法可以消除基于绑定或替代的流率的规则的应用。示例包括:(1)当内部表小到足以存储在为HashJoin分配的存储空间中时,不对联接表达式应用MergeJoin规则; (2)如果从连接的左子节点得到的输入数据流在替换中比在绑定中明显更大,则不对表达式的左移规则应用实现规则; (3)如果联接表达式的数据流输出明显大于从联接表达式的内部子级输入的数据流,则不将联接应用于TSJ(元组替代联接)规则;或(4)如果叉积的数量增加并且来自左子代的数据流速率增加,则不对左移位规则的替代联接表达式应用实现规则。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号