Database system with lock manager enhancement for improving concurrency
AssigneeSybase, Inc.
InventorNagavamsi Ponnekanti
Life of this patent
Estimating the term…
Loading patent…
AssigneeSybase, Inc.
InventorNagavamsi Ponnekanti
Estimating the term…
A Client/Server Database System with an enhanced Lock Manager for improving concurrency is described. The system tracks information about database columns that are updated in the Lock Manager, in addition to the exclusive lock on the data row (in case of data row locking) or data page (in case of data page locking). In particular, a new field, lrcolumns, is added to the system's record lock data structure to track which columns have been modified. When an exclusive lock is requested on a row of the table being updated in the update statement, the Lock Manager sets the value of lrcolumns. In the context of an exclusive lock that was acquired to update one or more columns of a data row, if an exclusive lock was used only to insert or delete (but not update) the data row, the lrcolumns field would be set to 0. Similarly, the lrcolumns field is 0 for locks that are not exclusive locks (e.g., shared locks). With the Lock Manager enhancement of storing information about updated columns, scan (i.e., database scan operation) can skip a row (i.e., does not block for a lock on the row) if at least one of the sargs that the row does not qualify is on a column that was not updated by the updater. The approach avoids a lot of unnecessary blocking, thereby improving concurrency significantly.
In a database system having a database storing a database table comprising a plurality of data rows, said rows storing information organized into particular database fields, an improved method for scanning a table for particular rows that meet a specified scan criterion, the method comprising:
A database system having a database storing a database table comprising a plurality of data records, said data records storing information organized into particular database fields, comprising:
Dependencies are inferred from the claim text.