NEIGHBORING LOCKING TECHNIQUE FOR INCREASING CONCURRENCY AMONG TRANSACTIONS
1 Assignment
0 Petitions
Accused Products
Abstract
New lock modes are based on the concept of neighborhoods and are applied to spaces in indexes. The new lock modes include a Read, or shared, neighborhood (Snei) lock mode and a Write neighborhood (Xnei) that enhance concurrency among non-serializable transactions.
-
Citations
20 Claims
-
1. (canceled)
-
2. A computer-readable storage medium having stored thereon instructions that, if executed, provide a locking scheme comprising:
-
granting a first transaction an exclusive lock on a first content item and a weak lock on a neighborhood for the first content item; and
granting a second concurrent transaction an exclusive lock on a second content item located in the neighborhood. - View Dependent Claims (4, 5)
-
-
3. The computer-readable storage medium further having stored thereon instructions that, if executed, grant the second transaction an exclusive non-serilizable lock (Xn) on the second content item.
-
6. A database management system, comprising:
-
a processor configured to support a neighborhood locking scheme for a neighborhood of free space adjacent to and associated with a data item and extending to an adjacent data item, the neighborhood locking scheme concurrently creating both a first locking mode for the data item, while at the same time creating a second locking mode for the neighborhood associated with the data item; and
wherein the neighborhood locking scheme includes a neighborhood lock (Xnei) mode that enables a first transaction to lock the neighborhood for inserting a new tuple but prevents the first transaction from locking a tuple associated with the neighborhood. - View Dependent Claims (7, 8)
-
-
9. A database management system, comprising:
-
a processor configured to provide a neighborhood locking scheme for a neighborhood of free space adjacent to and associated with a data item;
wherein the neighborhood locking scheme includes a non-serializable end of scan (Snei) lock mode that allows a first transaction to only read the neighborhood while preventing the first transaction from reading or writing a tuple associated with the neighborhood. - View Dependent Claims (10, 11)
-
-
12. A method for controlling access to data items in a database, comprising:
-
identifying a neighborhood of free space associated with a data item in the database;
granting a non-serializable shared lock for reading the data item with a first set of access privileges; and
granting a weak exclusive neighborhood lock on the data item with a second set of access privileges so that a first transaction can read the data item while a second transaction concurrently performs an insert operation into the neighborhood associated with the data item. - View Dependent Claims (13, 14, 15)
-
-
16. An apparatus for controlling access to data items in a database, comprising:
a processor configured to identify a neighborhood of free space associated with a data item in the database and gaining access for modifying the neighborhood by asserting a neighborhood lock (Xnei) on the data item and then restricting to the data item according to a predetermined set of lock modes associated with the Xnei. - View Dependent Claims (17, 18, 19, 20)
Specification