Patent · US Active

Concurrency control method of database transaction combining optimistic lock and pessimistic lock

US11263197B2 · kind B2 · utility

0Cited by
1References
7Claims
0Family size

Assignee

Inventors

Key dates

Filing dateSep 27, 2020
Grant dateMar 1, 2022
Priority date
Expiry dateOct 21, 2040

Classification

  • Technology area (CPC G)Physics
  • CPC primaryG06F16/2365
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

Abstract

A concurrency control method of database transaction combining an optimistic lock and a pessimistic lock includes: integrating a lock in each fragment in a storage range, using a lock table globally, and recording a lock status of the each fragment in the lock table; before reading a data object of a fragment in the storage range, first querying in the lock table whether the data object of the fragment is locked by other reading-writing transactions; if the data object of the fragment is locked by other reading-writing transactions, blocking the current reading operation, and repeating the current reading operation, and if the current reading operation is blocked for more than a given time limit, since the pessimistic lock is invalid, intervening by the optimistic lock, and continuing reading the single row data of the current fragment.

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.