首页> 外国专利> Semantic optimization of query order requirements using order detection by normalization in a query compiler system

Semantic optimization of query order requirements using order detection by normalization in a query compiler system

机译:在查询编译器系统中通过规范化使用顺序检测来对查询顺序需求进行语义优化

摘要

A procedure for detecting a reordering requirement in a directed record stream during query execution in a relational database processing system. The query compiler component of a relational database processing system includes procedures for building query execution plans (QEPs) for evaluation preparatory to selecting an optimal plan for execution. These plans are constructed from the bottom up using an internal graphical representation for the user query that has a number of relation nodes interconnected by directed record streams (data flows). A relational operation within each node imposes an "order requirement" on the outflow stream represented by an order requirement vector O.sub.R. The records within each directed record stream have an "order property" represented by an order property vector O.sub.P. Order detection occurs when these two vectors are compared to determine whether the order property satisfies the order requirement. Order detection by normalization (ODN) according to this invention first normalizes the two order specification vectors to remove all attributes made redundant by the effects of predicates and functional dependencies. Query execution plans constructed using ODN are found to execute an order of magnitude faster than those constructed using order detection without normalization.
机译:一种在关系数据库处理系统中执行查询期间检测定向记录流中重新排序要求的过程。关系数据库处理系统的查询编译器组件包括用于建立查询执行计划(QEP)的过程,以进行评估,以准备选择最佳执行计划。这些计划是使用用于用户查询的内部图形表示从下而上构造的,该查询具有由定向记录流(数据流)互连的多个关系节点。每个节点内的关系操作对由订单需求向量O R表示的流出流施加“订单需求”。每个有向记录流中的记录具有由订单属性矢量Op表示的“订单属性”。当比较这两个向量以确定订单属性是否满足订单要求时,便会发生订单检测。根据本发明的通过规范化的次序检测(ODN),首先规范化两个次序规范向量,以去除由于谓词和功能依赖性的影响而变得多余的所有属性。发现使用ODN构造的查询执行计划比不使用规范进行顺序检测的查询执行计划快一个数量级。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号