发明名称 Maintaining pre-computed aggregate views incrementally in the presence of non-minimal changes
摘要 Technique are provided for maintaining pre-computed aggregate views. A pre-computed aggregate view derived from one or more base tables is received, the pre-computed aggregate view including a pre-computed aggregate table and a view definition, the view definition including aggregate functions that can be any combination of sum, sum distinct, count(*), count, count distinct, min, and max, the view definition further including expressions that may be nullable. Changes to the one or more base tables are received, the changes being represented as insertions and deletions and being non-minimal. A set of incremental modifications to the pre-computed aggregate table are derived and applied based on the changes to the one or more base tables, wherein modifications may include any combination of inserts, deletes, and updates. Deriving the set of incremental modifications to the pre-computed aggregate table includes deriving a first table wherein each record, representing an aggregated group of changes, shows for each aggregation function, the contributions of base table changes that are insertions for the group and the contributions of base table changes that are deletions for the group and using some combination of information in the first table, the pre-computed aggregate table, and the one or more base tables from which the pre-computed view is derived.
申请公布号 AU8136501(A) 申请公布日期 2002.02.13
申请号 AU20010081365 申请日期 2001.07.30
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 LATHA S. COLBY;DAVID G. WILHITE JR.;WILLIAM J. MCKENNA
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项
地址