首页> 外国专利> Rewriting a query in terms of a summary based on aggregate computability and canonical format, and when a dimension table is on the child side of an outer join

Rewriting a query in terms of a summary based on aggregate computability and canonical format, and when a dimension table is on the child side of an outer join

机译:根据汇总的可计算性和规范格式以及维度表位于外部联接的子级时,根据摘要来重写查询

摘要

A method and system are provided for processing queries, where the queries do not reference a particular materialized view. Specifically, techniques are provided for handling a query that specifies a first set of one or more aggregate functions, where the particular materialized view reflects a second set of one or more aggregate functions. Whether the query can be rewritten is determined based on the aggregate functions in the first and second sets, and the corresponding arguments. Techniques are also provided for processing a query that (1) does not reference a particular materialized view, (2) specifies a first set of one or more aggregate functions, where the particular materialized view reflects a second set of one or more aggregate functions. A technique is also provided for rewriting queries that specify an outer join that has a dimension table on the child-side of the outer join and a fact table on the parent-side of the outer join. The query is rewritten to produce a rewritten query by replacing references to the fact table in the query with references to a materialized view. The rewritten query specifies an outer join that has the dimension table on the child side and the materialized view on the parent side.
机译:提供了一种用于处理查询的方法和系统,其中查询不引用特定的实例化视图。具体地,提供了用于处理指定一个或多个集合函数的第一集合的查询的技术,其中特定的物化视图反映了一个或多个集合函数的第二集合。根据第一组和第二组中的聚合函数以及相应的参数确定查询是否可以重写。还提供了用于处理以下查询的技术:(1)不引用特定的实例化视图;(2)指定一个或多个集合函数的第一集合,其中,特定的实例化视图反映一个或多个集合函数的第二集合。还提供了一种用于重写查询的技术,该查询指定了外部联接,该外部联接在外部联接的子级具有维度表,而在外部联接的父级具有事实表。通过将查询中对事实表的引用替换为对物化视图的引用,可以对该查询进行重写以生成重写的查询。重写的查询指定一个外部联接,该联接在子侧具有维表,在父侧具有物化视图。

著录项

  • 公开/公告号US5991754A

    专利类型

  • 公开/公告日1999-11-23

    原文格式PDF

  • 申请/专利权人 ORACLE CORPORATION;

    申请/专利号US19980222249

  • 申请日1998-12-28

  • 分类号G06F17/30;

  • 国家 US

  • 入库时间 2022-08-22 01:39:01

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号