Conditional commit for data in a database
First Claim
Patent Images
1. A database, comprising:
- a database interface, wherein the database interface enables a first transaction comprising a reading of a first set of information from the database at the same time as a second transaction comprising a second conditional write command of at least one element in the first set of information;
a database updater, wherein the database updater;
updates, using a processor, the first set of information according to a write command as part of the first transaction;
receives the second transaction comprising the second conditional write command for updating the at least one element in the first set of information in the database, wherein the second conditional write command includes one or more conditions based at least in part on a value of a database entry of the first set of information, wherein the one or more conditions limit changes allowable to the value of the database entry of the first set of information that occurred after the reading of the first set of information from the database, wherein the one or more conditions detect corruption of data and allow the database to execute read and write commands at full speed in order to reduce overhead associated with access locking;
updates the at least one element of the first set of information in the event that the one or more conditions in the second conditional write command is met; and
in the event that the one or more conditions in the second conditional write command is not met, abort the second transaction.
4 Assignments
0 Petitions
Accused Products
Abstract
A database comprises a database interface and a database updater. The database interface enables a reading of a first set of information from the database. The database updater updates a second set of information in the database based at least in part on one or more conditions. The one or more conditions limit changes allowable to the first set of information from the database that occurred after the reading of the first set of information from the database.
45 Citations
25 Claims
-
1. A database, comprising:
-
a database interface, wherein the database interface enables a first transaction comprising a reading of a first set of information from the database at the same time as a second transaction comprising a second conditional write command of at least one element in the first set of information; a database updater, wherein the database updater; updates, using a processor, the first set of information according to a write command as part of the first transaction; receives the second transaction comprising the second conditional write command for updating the at least one element in the first set of information in the database, wherein the second conditional write command includes one or more conditions based at least in part on a value of a database entry of the first set of information, wherein the one or more conditions limit changes allowable to the value of the database entry of the first set of information that occurred after the reading of the first set of information from the database, wherein the one or more conditions detect corruption of data and allow the database to execute read and write commands at full speed in order to reduce overhead associated with access locking; updates the at least one element of the first set of information in the event that the one or more conditions in the second conditional write command is met; and in the event that the one or more conditions in the second conditional write command is not met, abort the second transaction. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23)
-
-
24. A method for a database, comprising:
-
enabling a first transaction comprising a reading of a first set of information from the database at the same time as a second transaction comprising a second conditional write command of at least one element in the first set of information; updating the first set of information according to a write command as part of the first transaction; receiving the second transaction comprising the second conditional write command for updating the at least one element in the first set of information in the database, wherein the second conditional write command includes one or more conditions based at least in part on a value of a database entry of the first set of information, wherein the one or more conditions limit changes allowable to the value of a database entry of the first set of information that occurred after the reading of the first set of information from the database, wherein the one or more conditions detect corruption of data and allow the database to execute read and write commands at full speed in order to reduce overhead associated with access locking; updating the at least one element of the first set of information in the event that the one or more conditions in the second conditional write command is met; and in the event that the one or more conditions in the second conditional write command is not met, abort the second transaction.
-
-
25. A computer program product for a database, the computer program product being embodied in a non-transitory computer readable storage medium and comprising computer instructions for:
-
enabling a first transaction comprising a reading of a first set of information from the database at the same time as a second transaction comprising a second conditional write command of at least one element in the first set of information; updating the first set of information according to a write command as part of the first transaction; receiving the second transaction comprising the second conditional write command for updating the at least one element in the first set of information in the database, wherein the second conditional write command includes one or more conditions based at least in part on a value of a database entry of the first set of information, wherein the one or more conditions limit changes allowable to the value of a database entry of the first set of information that occurred after the reading of the first set of information from the database, wherein the one or more conditions detect corruption of data and allow the database to execute read and write commands at full speed in order to reduce overhead associated with access locking; updating the at least one element of the first set of information in the event that the one or more conditions in the second conditional write command is met; and in the event that the one or more conditions in the second conditional write command is not met, abort the second transaction.
-
Specification