首页> 外国专利> DYNAMIC SELECTION OF OPTIMAL GROUPING SEQUENCE AT RUNTIME FOR GROUPING SETS, ROLLUP AND CUBE OPERATIONS IN SQL QUERY PROCESSING

DYNAMIC SELECTION OF OPTIMAL GROUPING SEQUENCE AT RUNTIME FOR GROUPING SETS, ROLLUP AND CUBE OPERATIONS IN SQL QUERY PROCESSING

机译:SQL查询处理中的分组集,汇总和多维数据集操作在运行时动态选择最佳分组序列

摘要

A method, apparatus, and article of manufacture for optimizing a query in a computer system. During compilation of the query, a GROUP BY clause with one or more GROUPING SETS, ROLLUP or CUBE operations is maintained in its original form until after query rewrite. The GROUP BY clause with the GROUPING SETS, ROLLUP or CUBE operations is then translated into a plurality of levels having one or more grouping sets. After compilation of the query, a grouping sets sequence is dynamically determined for the GROUP BY clause with the GROUPING SETS, ROLLUP or CUBE operations based on intermediate grouping sets, in order to optimize the grouping sets sequence. The execution of the grouping sets sequence is optimized by selecting a smallest grouping set from a previous one of the levels as an input to a grouping set on a next one of the levels. Finally, a UNION ALL operation is performed on the grouping sets.
机译:一种用于优化计算机系统中的查询的方法,装置和制品。在查询编译期间,具有一个或多个GROUPING SETS,ROLLUP或CUBE操作的GROUP BY子句将保持其原始形式,直到重写查询之后。然后将具有GROUPING SETS,ROLLUP或CUBE操作的GROUP BY子句转换为具有一个或多个分组集的多个级别。查询编译后,将基于中间分组集使用GROUPING SETS,ROLLUP或CUBE操作为GROUP BY子句动态确定分组集序列,以优化分组集序列。通过从上一个级别中选择最小的分组集作为对下一个级别上的分组集的输入,可以优化分组集序列的执行。最后,对分组集执行UNION ALL操作。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号