首页> 外文会议>International conference on Very Large Data Bases >Query Optimization in the Presence of Foreign Functions
【24h】

Query Optimization in the Presence of Foreign Functions

机译:在存在外函数的情况下查询优化

获取原文

摘要

The declarativeness of relational query languages is very attractive for developing applications. However, many applications also need to invoke external functions or to access data that is not stored in the database. It is not hard to express references to such foreign functions in the query language. However, the issue of cost-based optimization of relational queries in the presence of such foreign functions has not previously been addressed satisfactorily. In this paper, we describe a comprehensive approach to this problem. Our key observation is that the optimization must take into account semantic information about foreign functions. Therefore, we provide a simple declarative rule language to express such semantics. We present algorithms necessary for applying the rules and for generating the space of equivalent queries. The equivalent queries provide the optimizer with an enriched execution space. We show how we can modify the traditional join reordering algorithm based on dynamic programming to obtain an optimal plan from the execution space. We provide necessary extensions to the cost model that are needed in the presence of foreign functions.
机译:关系查询语言的申报性对于开发应用程序非常有吸引力。但是,许多应用程序还需要调用外部函数或访问未存储在数据库中的数据。在查询语言中表达对此类外部功能的引用并不难。然而,在存在这种外国职能存在下,基于成本的关系的优化问题尚未令人满意地解决。在本文中,我们描述了解决这个问题的综合方法。我们的主要观察是,优化必须考虑有关外部功能的语义信息。因此,我们提供了一种简单的声明性规则语言来表达此类语言。我们提供应用规则所需的算法,并用于生成等效查询的空间。等效查询为优化器提供了丰富的执行空间。我们展示了如何根据动态编程修改传统的加入重新排序算法,以从执行空间获取最佳计划。我们为存在外国功能所需的成本模型提供必要的扩展。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号