首页> 外国专利> Incremental maintenance of materialized views containing one-to-N lossless joins

Incremental maintenance of materialized views containing one-to-N lossless joins

机译:包含一对一无损联接的物化视图的增量维护

摘要

A method and apparatus are provided for performing incremental refreshes to materialized views defined by one-to-N lossless joins. Each base table of the materialized view is selected to be processed as the current "selected table". The processing of the current selected table varies depending on whether the selected table is the right side table of an outer join. If the selected table is not the right table of an outer join, then the selected table is processed by (1) deleting rows from the materialized view based on rows of the selected table that have been updated or deleted in the selected table during the batch window, and (2) inserting rows into the materialized view based on updates and inserts into the selected table that occurred during the batch window. If the selected table is the right table of an outer join, then changes made to the selected table are processed in a way that reduces the number of changes that have to be made to the materialized view. According to one embodiment of the invention, operations performed during the incremental refresh are performed by issuing database statements (e.g. SQL queries) to a database server. The incremental refresh techniques described herein are "memoryless" in that they do not require a record of the sequence of changes that were made during a batch window. Techniques are described for performing the incremental refresh steps through the use of database commands and queries.
机译:提供一种用于对由一对一无损联接定义的物化视图执行增量刷新的方法和装置。实例化视图的每个基本表都被选择作为当前“选定表”进行处理。当前所选表的处理方式取决于所选表是否为外部联接的右侧表。如果所选表不是外部联接的正确表,则通过以下方式处理所选表:(1)根据所选表中在批处理期间已在所选表中更新或删除的行,从物化视图中删除行窗口,以及(2)根据更新将行插入到实例化视图中,并将行插入到在批处理窗口期间发生的选定表中。如果所选表是外部联接的右表,则以减少必须对实例化视图进行的更改数量的方式来处理对所选表所做的更改。根据本发明的一个实施例,在增量刷新期间执行的操作是通过向数据库服务器发布数据库语句(例如SQL查询)来执行的。本文所述的增量刷新技术是“无内存的”,因为它们不需要记录在批处理窗口期间进行的更改序列。描述了通过使用数据库命令和查询来执行增量刷新步骤的技术。

著录项

  • 公开/公告号US6125360A

    专利类型

  • 公开/公告日2000-09-26

    原文格式PDF

  • 申请/专利权人 ORACLE CORPORATION;

    申请/专利号US19980109115

  • 发明设计人 ANDREW WITKOWSKI;KARL DIAS;

    申请日1998-07-02

  • 分类号G06F17/30;

  • 国家 US

  • 入库时间 2022-08-22 01:36:06

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号