首页> 外国专利> Rewrite constraints for database queries

Rewrite constraints for database queries

机译:重写数据库查询的约束

摘要

A database system rewrites database queries based on rewrite constraints specification. The rewrite constraints specification provides directives to the database system to generate temporary tables for storing intermediate results of database queries and rewrite the corresponding database queries in terms of the temporary tables. The subqueries for matching the rewrite constraints specification may be specified in various ways. For example, the rewrite constraints specification may identify the subqueries by using one or more aliases. The rewrite constraints specification may specify a list of tables such that all database queries that join the database tables specified in the rewrite constraints specification are determined to match. The optimizer is able to optimize the rewritten database queries better by getting a better estimate for the statistics describing the temporary tables.
机译:数据库系统根据重写约束规范重写数据库查询。重写约束规范为数据库系统提供了指令,以生成用于存储数据库查询中间结果的临时表,并根据临时表重写相应的数据库查询。可以以各种方式指定用于匹配重写约束规范的子查询。例如,重写约束规范可以通过使用一个或多个别名来标识子查询。重写约束规范可以指定表列表,以便确定所有联接在重写约束规范中指定的数据库表的数据库查询都匹配。通过获得对描述临时表的统计信息的更好估计,优化器能够更好地优化重写的数据库查询。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号