首页> 外国专利> Cost-based maintenance of materialized views

Cost-based maintenance of materialized views

机译:基于成本的物化视图维护

摘要

A method of incrementally maintaining a first materialized view of data in a database, by means of an additional materialized view, first determines whether a cost in time of incrementally maintaining the first materialized view with the additional materialized view is less than the cost of incrementally maintaining the first materialized view without the additional materialized view. The method creates the additional materialized view only if the cost in time is less therewith. Determining whether the cost of employing an additional materialized view is less includes using an expression directed acyclic graph that corresponds to the first materialized view. Another method of determining whether the cost is less includes pruning an expression directed acyclic graph to produce a single expression tree, and using the single expression tree to determine whether the cost is less. Both the expression directed acyclic graph and the single expression tree contain equivalence nodes. One or more possible materialized views are selected by marking the equivalence nodes, and materializing one or more views corresponding to the marked equivalence nodes. One or more possible materialized views are also selected by determining which of the views, if materialized, would result in a lowest cost of incrementally maintaining the first materialized view. The method is also used to reduce the cost in time of maintaining a first materialized view employed to check an integrity constraint of the database.
机译:一种通过附加的实例化视图在数据库中增量维护数据的第一实例化方法的方法,首先确定使用附加的实例化视图增量维护第一实例化视图的时间成本是否小于增量维护的成本。没有其他实现视图的第一个实现视图。仅在时间成本较少的情况下,该方法才创建附加的实体化视图。确定采用附加的实体化视图的成本是否较小包括使用与第一实体化视图相对应的表达式有向无环图。确定成本是否较小的另一种方法包括修剪表达式有向无环图以产生单个表达式树,并使用单个表达式树确定成本是否较小。表达式有向无环图和单个表达式树都包含等价节点。通过标记等价节点并实例化对应于标记的等价节点的一个或多个视图,可以选择一个或多个可能的实例化视图。通过确定哪些视图(如果已实现),将导致增量维护第一个实现视图的成本最低,从而选择一个或多个可能的实现视图。该方法还用于减少维护用于检查数据库完整性约束的第一个物化视图的时间成本。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号