首页> 外文会议>IEEE international conference on data engineering >Locking policies in distributed databases
【24h】

Locking policies in distributed databases

机译:锁定分布式数据库中的策略

获取原文

摘要

In Distributed Databases the typical problems of Centralized Databases become more difficult. One of them is Concurrency Control. It can be summarized as follows. Users of the Database access it by executing transactions. Different transactions are executed concurrently therefore their actions interleave. Without proper control this interleaving may produce incorrect results, even if individual transactions are correct. The Concurrency Control process has to prevent these situations. There are several possible mechanisms for controlling concurrency, of which the most widely used is Locking. In this paper we examine and analyze Locking as a Concurrency Control mechanism for Distributed Databases. We define Distributed Locking Policies (methods for locking entities in Distributed Databases) and show how existing Policies for a Centralized Database generalize to the Distributed case. We also define a new category of Distributed Locking Policies, D-policies, into which these generalizations fall. An algorithm which determines whether all transactions of a given D-policy are guaranteed to produce only correct interleavings (are safe) is presented. The algorithm is efficient, even though testing an arbitrary set of transactions for safety is coNP-complete. However, we prove that optimal locking of transactions to satisfy the conditions tested by the algorithm is NP-hard even for a Centralized Database.
机译:在分布式数据库中,集中式数据库的典型问题变得更加困难。其中之一是并发控制。可以总结如下。数据库的用户通过执行事务来访问它。不同的事务是同时执行的,因此它们的动作是交错的。没有适当的控制,即使个别交易正确,这种交织也可能产生错误的结果。并发控制过程必须防止这些情况。有几种可能的控制并发的机制,其中使用最广泛的是锁定。在本文中,我们检查并分析了锁定作为分布式数据库的并发控制机制。我们定义了分布式锁定策略(用于锁定分布式数据库中实体的方法),并说明了集中式数据库的现有策略如何推广到分布式案例中。我们还定义了这些概括归入的新类别的分布式锁定策略D策略。提出了一种算法,该算法确定是否可以保证给定D策略的所有事务仅产生正确的交织(安全)。即使测试任意一组事务的安全性是coNP完整的,该算法也是有效的。但是,我们证明,即使对于集中式数据库,满足该算法测试条件的交易的最佳锁定也是NP-难的。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号