首页> 外国专利> Evaluation of grouping sets by reduction to group-by clause, with or without a rollup operator, using temporary tables

Evaluation of grouping sets by reduction to group-by clause, with or without a rollup operator, using temporary tables

机译:使用临时表,通过归纳为group-by子句来评估分组集,无论是否使用汇总运算符

摘要

Methods are provided for efficiently evaluating database queries that include a grouping sets specification, by reducing the grouping sets specification to one or more combinations of groupings that are computable with simple GROUP BY clauses, with or without a rollup operator, wherein the GROUP BY clauses and rollup operators are efficient operations that can be computed with a single data sort. Computational costs are further minimized by computing a grouping from records generated from computation of a previously computed grouping. An optimization algorithm is described which determines the respective grouping combinations to which the grouping sets specification is reduced and the respective GROUP BY clauses, to minimize computational costs. Furthermore, an intermediate grouping, that is, a grouping that is not specified by the query, is included in a query evaluation plan in some instances, to compute specified groupings when doing so reduces computational costs.
机译:提供了用于通过将分组集规范简化为一个或多个可以用简单GROUP BY子句计算,具有或不具有汇总运算符的分组的组合来有效评估包括分组集规范的数据库查询的方法,其中GROUP BY子句和汇总运算符是可以用单个数据排序进行计算的有效运算。通过从根据先前计算的分组的计算所生成的记录中计算分组来进一步使计算成本最小化。描述了一种优化算法,该算法确定将分组集规范减少到的各个分组组合以及各个GROUP BY子句,以最大程度地减少计算成本。此外,在某些情况下,中间分组(即查询未指定的分组)包括在查询评估计划中,以便在这样做时计算指定的分组,从而降低了计算成本。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号