首页> 外国专利> Method for enforcing the serialization of global multidatabase transactions through committing only on consistent subtransaction serialization by the local database managers

Method for enforcing the serialization of global multidatabase transactions through committing only on consistent subtransaction serialization by the local database managers

机译:通过仅提交由本地数据库管理器进行的一致子事务序列化来实施全局多数据库事务序列化的方法

摘要

Our invention guarantees global serializability by preventing multidatabase transactions from being serialized in different ways at the participating local database systems (LDBS). In one embodiment tickets are used to inform the MDBS of the relative serialization order of the subtransactions of each global transactions at each LDBS. A ticket is a (logical) timestamp whose value is stored as a regular data item in each LDBS. Each substransaction of a global transaction is required to issue the take-a-ticket operations which consists of reading the value of the ticket (i.e., read ticket) and incrementing it (i.e., write (ticket+1)) through regular data manipulation operations. Only the subtransactions of global transactions take tickets. When different global transactions issue subtransactions at a local database, each subtransaction will include the take-a-ticket operations. Therefore, the ticket values associated with each global subtransaction at the MDBS reflect the local serialization order at each LDBS. The MDBS in accordance with our invention examines the ticket values to determine the local serialization order at the different LDBS's and only authorizes the transactions to commit if the serialization order of the global transactions is the same at each LDBS. In another embodiment, the LDBSs employ rigorous schedulers and the prepared-to-commit messages for each subtransaction are used by the MDBS to ensure global serializability.
机译:我们的发明通过防止多数据库事务在参与的本地数据库系统(LDBS)处以不同的方式被序列化来保证全局的可序列化性。在一个实施例中,票证用于通知MDBS每个LDBS处每个全局事务的子事务的相对序列化顺序。票证是(逻辑)时间戳记,其值作为常规数据项存储在每个LDBS中。全局事务的每个子事务都需要发出票证操作,该操作包括读取票证的值(即,读取票证)并通过常规数据操作操作将其递增(即,写(票证+1)) 。只有全局事务的子事务才能使用票证。当不同的全局事务在本地数据库发出子事务时,每个子事务都将包含门票操作。因此,与MDBS上每个全局子事务相关联的票证值反映了每个LDBS上的本地序列化顺序。根据本发明的MDBS检查票证值以确定在不同LDBS处的本地序列化顺序,并且仅当全局事务的序列化顺序在每个LDBS处相同时才授权事务提交。在另一个实施例中,LDBS使用严格的调度器,并且每个子事务的准备提交消息由MDBS使用以确保全局可串行性。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号