首页> 外国专利> Analyzing, optimizing and rewriting queries using matching and compensation between query and automatic summary tables

Analyzing, optimizing and rewriting queries using matching and compensation between query and automatic summary tables

机译:使用查询和自动汇总表之间的匹配和补偿来分析,优化和重写查询

摘要

A method, apparatus, and article of manufacture for optimizing database queries using a derived summary table, wherein a definition of the summary table is based on a full select statement, including, but not limited to, a derived table involving nested GROUP BY operations and complex HAVING clauses with subqueries or joins, that is materialized in the table and describes how the summary table was derived. A query is analyzed using matching/compensation tests between the query and the definition of the summary table (that is, a query by itself) to determine whether expressions occurring anywhere in the query, but not in the summary table, can be derived using either the content in the summary table alone, or after combining (through some relational operator) the content of the summary table with other base tables, and hence the query is subsumed by or overlaps with the summary table definition.
机译:一种用于使用派生摘要表优化数据库查询的方法,装置和制造品,其中摘要表的定义基于完整选择语句,包括但不限于涉及嵌套GROUP BY操作的派生表和在表中具体化了带有子查询或联接的复杂HAVING子句,并描述了如何导出汇总表。使用查询和摘要表的定义(即查询本身)之间的匹配/补偿测试对查询进行分析,以确定是否可以使用以下任一方法来派生查询中任何地方而不是摘要表中出现的表达式:单独使用摘要表中的内容,或者将摘要表的内容与其他基本表合并(通过某种关系运算符)后,查询将被摘要表定义所包含或与之重叠。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号