【24h】

Avoiding Sorting and Grouping In Processing Queries

机译:在处理查询中避免排序和分组

获取原文
获取原文并翻译 | 示例

摘要

Sorting and grouping are amongst the most costly operations performed during query evaluation. System R [6] used simple inference strategies to determine orderings held of intermediate relations to avoid unnecessary sorting, and to influence join plan selection. Since then, others have proposed using integrity constraint information to infer orderings of intermediate query results. However, these proposals do not consider how to avoid grouping operations by inferring groupings, nor do they consider secondary orderings (where records in the same group satisfy some ordering). In this paper, we introduce a formalism for expressing and reasoning about order properties: ordering and grouping constraints that hold of physical representations of relations. In so doing, we can reason about how the relation is ordered or grouped, both in terms of primary and secondary orders. After formally defining order properties, we introduce a plan refinement algorithm that infers order properties for intermediate and final query results on the basis of those known to hold of query inputs, and then exploits these inferences to avoid unnecessary sorting and grouping. We then show empirical results demonstrating the benefits of plan refinement, and show that the overhead that our algorithm adds to query optimization is low.
机译:排序和分组是查询评估期间执行的最昂贵的操作之一。系统R [6]使用简单的推理策略来确定中间关系的顺序,以避免不必要的排序,并影响联接计划的选择。从那时起,其他人提出使用完整性约束信息来推断中间查询结果的顺序。但是,这些建议没有考虑如何通过推断分组来避免分组操作,也没有考虑次级排序(同一组中的记录满足某种排序)。在本文中,我们介绍了一种用于表达和推理顺序属性的形式主义:具有关系的物理表示形式的排序和分组约束。这样,我们就可以根据一级和二级订单来推断关系的排序或分组方式。在正式定义订单属性之后,我们引入一种计划优化算法,该算法根据已知的查询输入保持量推断中间查询结果和最终查询结果的订单属性,然后利用这些推断来避免不必要的排序和分组。然后,我们显示出经验结果,证明了计划细化的好处,并表明我们的算法增加了查询优化的开销。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号