首页> 外文会议>SIGMOD/PODS 2007 >Execution Strategies for SQL Subqueries
【24h】

Execution Strategies for SQL Subqueries

机译:SQL子查询的执行策略

获取原文

摘要

Optimizing SQL subqueries has been an active area in database research and the database industry throughout the last decades. Previous work has already identified some approaches to efficiently execute relational subqueries. For satisfactory performance, proper choice of subquery execution strategies becomes even more essential today with the increase in decision support systems and automatically generated SQL, e.g., with ad-hoc reporting tools. This goes hand in hand with increasing query complexity and growing data volumes – which all pose challenges for an industrial-strength query optimizer. This current paper explores the basic building blocks that Microsoft SQL Server utilizes to optimize and execute relational subqueries. We start with indispensable prerequisites such as detection and removal of correlations for subqueries. We identify a full spectrum of fundamental subquery execution strategies such as forward and reverse lookup as well as set-based approaches, explain the different execution strategies for subqueries implemented in SQL Server, and relate them to the current state of the art. To the best of our knowledge, several strategies discussed in this paper have not been published before. An experimental evaluation complements the paper. It quantifies the performance characteristics of the different approaches and shows that indeed alternative execution strategies are needed in different circumstances, which make a cost-based query optimizer indispensable for adequate query performance.
机译:在过去的几十年中,优化SQL子查询一直是数据库研究和数据库行业中的活跃领域。先前的工作已经确定了一些有效执行关系子查询的方法。为了获得令人满意的性能,如今,随着决策支持系统和自动生成的SQL(例如使用临时报告工具)的增加,正确选择子查询执行策略变得更加重要。这与不断增加的查询复杂性和不断增长的数据量并驾齐驱,这些都对工业强度的查询优化器构成了挑战。本白皮书探讨了Microsoft SQL Server用于优化和执行关系子查询的基本构建块。我们从不可缺少的先决条件开始,例如检测和删除子查询的相关性。我们确定了基本子查询执行策略的全部范围,例如正向和反向查找以及基于集合的方法,解释了在SQL Server中实现的子查询的不同执行策略,并将它们与当前技术水平联系起来。据我们所知,本文中讨论的几种策略以前尚未发布过。实验评估是对本文的补充。它量化了不同方法的性能特征,并表明确实在不同情况下需要替代执行策略,这使得基于成本的查询优化器对于获得足够的查询性能必不可少。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号