首页> 外文会议>ACM SIGMOD international conference on Management of data >Exploiting constraint-like data characterizations in query optimization
【24h】

Exploiting constraint-like data characterizations in query optimization

机译:在查询优化中利用类似约束的数据表征

获取原文

摘要

Query optimizers nowadays draw upon many sources of information about the database to optimize queries. They employ runtime statistics in cost-based estimation of query plans. They employ integrity constraints in the query rewrite process. Primary and foreign key constraints have long played a role in the optimizer, both for rewrite opportunities and for providing more accurate cost predictions. More recently, other types of integrity constraints are being exploited by optimizers in commercial systems, for which certain semantic query optimization techniques have now been implemented.

These new optimization strategies that exploit constraints hold the promise for good improvement. Their weakness, however, is that often the "constraints" that would be useful for optimization for a given database and workload are not explicitly available for the optimizer. Data mining tools can find such "constraints" that are true of the database, but then there is the question of how this information canbe kept by the database system, and how to make this information available to, and effectively usable by, the optimizer.

We present our work on soft constraints in DB2. A soft constraint is a syntactic statement equivalent to an integrity constraint declaration. A soft constraint is not really a constraint, per se, since future updates may undermine it. While a soft constraint is valid, however, it can be used by the optimizer in the same way integrity constraints are. We present two forms of soft constraint: absolute and statistical. An absolute soft constraint is consistent with respect to the current state of the database, just in the same way an integrity constraint must be. They can be used in rewrite, as well as in cost estimation. A statistical soft constraint differs in that it may have some degree of violation with respect to the state of the database. Thus, statistical soft constraints cannot be used in rewrite, but they can still be used in cost estimation.

We are working long-term on absolute soft constraints. We discuss the issues involved in implementing a facility for absolute soft constraints in a database system (and in DB2), and the strategies that we are researching. The current DB2 optimizer is more amenable to adding facilities for statistical soft constraints. In the short-term, we have been implementing pathways in the optimizer for statistical soft constraints. We discuss this implementation.

机译:如今,

查询优化器可以利用有关数据库的许多信息源来优化查询。他们在基于成本的查询计划估计中采用运行时统计信息。他们在查询重写过程中采用完整性约束。长期以来,主键约束和外键约束在优化器中一直发挥着作用,既可以重写机会,又可以提供更准确的成本预测。最近,商业系统中的优化器正在利用其他类型的完整性约束,现在已经实现了某些语义查询优化技术。

这些利​​用约束的新优化策略有望带来良好的改进。但是,它们的弱点是,对于给定的数据库和工作负载进行优化有用的“约束”通常对于优化器而言并不是明确可用的。数据挖掘工具可以找到适合数据库的“约束”,但是接下来的问题是数据库系统如何保留此信息,以及如何使优化器可以使用这些信息并有效地使用它们。

我们介绍了有关DB2中软约束的工作。软约束是等同于完整性约束声明的语法语句。软约束本身并不是真正的约束,因为将来的更新可能会破坏它。尽管软约束有效,但是优化程序可以使用完整性约束相同的方式来使用它。我们提出两种形式的软约束:绝对统计。就数据库的 current 状态而言,绝对软约束是一致的,就像完整性约束必须采用的相同方式一样。它们可用于重写以及成本估算。统计软约束的不同之处在于,它可能在某种程度上违反数据库的状态。因此,统计软约束不能用于重写,但仍可以用于成本估算。

我们正在就绝对的软约束进行长期工作。我们讨论在数据库系统(和DB2)中实现用于绝对软约束的工具所涉及的问题,以及我们正在研究的策略。当前的DB2优化器更适合为统计软约束添加功能。在短期内,我们一直在优化程序中实现统计软约束的途径。我们将讨论此实现。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号