发明名称 A METHOD RELATING TO DATABASES
摘要 <p>The present invention relates to a method of providing consistent reading of a number of objects (10, 20, 30) within a database. The method is adapted for use with a database in which transactions are managed by two-phase locking, wherein a first phase (A) comprises a request for access to objects (10, 20, 30) affected by the transaction and locking of these objects as soon as access thereto has been granted, and where a second phase (B) comprises committing the transaction and releasing all locks that were set in the first phase. The actual work performed in a transaction may be summarised as object changing actions and/or object non-changing actions. A change, or an update, of the content of an object is performed by writing the new content into a new version of the object, where the current version of the object prior to said transaction is retained until no further transactions make use of this version. The transaction performs all changing actions within the first phase (A). According to the present invention, the transaction is adapted to retain access to the objects (10, 20, 30) after the second phase (B). The transaction is also adapted to perform the largest possible number of non-changing actions in a third phase (C), after the second phase (B), whereafter the transaction closes access to the objects. Thus, the inventive method provides the transaction with a consistent snapshot of affected objects (10, 20, 30) in the database after the locks have been released, with regard to non-changing actions, that is to say in the third phase (C) after the second phase (B).</p>
申请公布号 WO1999038096(A1) 申请公布日期 1999.07.29
申请号 SE1999000087 申请日期 1999.01.21
申请人 发明人
分类号 主分类号
代理机构 代理人
主权项
地址