A method relating to databases

G - Physics – 06 – F

Patent

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

G06F 17/30 (2006.01)

Patent

CA 2319259

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).

L'invention concerne un procédé permettant d'obtenir une lecture cohérente d'une pluralité d'objets (10, 20, 30) dans une base de données. Le procédé est adapté pour l'emploi avec une base de données dans laquelle des transactions sont gérées par blocage à deux phases, une première phase (A) comprenant une demande pour l'accès à des objets (10, 20, 30) affectés par la transaction et le blocage de ces objets dès que l'accès à ceux-ci est garanti, et une deuxième phase (B) comprenant l'attribution de la transaction et la libération de tous les blocages introduits dans la première phase. Globalement, le travail réel effectué dans une transaction peut se résumer en actions modifiant l'objet et/ou en actions ne modifiant pas l'objet. Un changement, ou une mise à jour, du contenu d'un objet est effectué en écrivant le nouveau contenu suivant une nouvelle version de l'objet, la version courante de l'objet, antérieurement à ladite transaction, étant retenue jusqu'à ce qu'aucune autre transaction ne fasse usage de cette version. La transaction effectue toutes les actions de modification dans les limites de la première phase (A). Conformément à l'invention, la transaction est adaptée pour retenir l'accès aux objets (10, 20, 30) après la deuxième phase (B). La transaction est également adaptée pour effectuer le plus grand nombre possible d'actions de non modification dans une troisième phase (C), après la deuxième phase (B), après quoi la transaction ferme l'accès aux objets. De cette façon, le procédé selon l'invention permet d'avoir une transaction avec un instantané cohérent d'objets affectés (10, 20, 30) dans la base de données, une fois que les blocages ont été libérés, en ce qui concerne les actions de non modification, c'est-à-dire dans la troisième phase (C), après la deuxième phase (B).

LandOfFree

Say what you really think

Search LandOfFree.com for Canadian inventors and patents. Rate them and share your experience with other people.

Rating

A method relating to databases does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with A method relating to databases, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and A method relating to databases will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFCA-PAI-O-1594187

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.