首页> 外国专利> Concurrency control in materialized views of a database

Concurrency control in materialized views of a database

机译:数据库物化视图中的并发控制

摘要

In a database, a database manager can generate a view, which, in concept, is a subset of the database, which is placed outside the database for use without disturbing the database, and without disturbance by others using the database. The subset, or view, can be understood as a collection of rows, or tuples, of data copied from the database. With views existing, multiple copies of data within the database now exist: the original in the database, and copies in the views. If one of these is changed, without corresponding changes made in the others, then inconsistencies occur, which cannot be tolerated. Under the invention, when a user seeks a lock on a view, indicating that a change may be imminent, the invention locks a superset of the tuples in the database from which the view is derived. A superset is a set which contains the set of tuples of the view, plus possibly others. Thus, more tuples are locked than strictly necessary. The excess locking is tolerated because other benefits are obtained.
机译:在数据库中,数据库管理器可以生成视图,从概念上讲,该视图是数据库的子集,该视图放置在数据库外部以供使用而不会干扰数据库,也不会受到其他使用该数据库的干扰。子集或视图可以理解为从数据库复制的数据的行或元组的集合。使用现有视图,数据库中现在存在多个数据副本:数据库中的原始副本以及视图中的副本。如果其中之一被更改,而其他未进行相应更改,则会发生不一致,这是不能容忍的。根据本发明,当用户寻找视图上的锁以指示可能即将发生改变时,本发明将数据库的元组的超集锁定在该视图的数据库中。超集是一组包含视图元组的集合,可能还包含其他集合。因此,锁定了更多的元组而不是严格必要的。因为获得了其他好处,所以可以容忍过度锁定。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号