Invention Publication
- Patent Title: RECORD-LEVEL LOCKS WITH CONSTANT SPACE COMPLEXITY
-
Application No.: US17936339Application Date: 2022-09-28
-
Publication No.: US20240111751A1Publication Date: 2024-04-04
- Inventor: Himanshu Jindal
- Applicant: Amazon Technologies, Inc.
- Applicant Address: US WA Seattle
- Assignee: Amazon Technologies, Inc.
- Current Assignee: Amazon Technologies, Inc.
- Current Assignee Address: US WA Seattle
- Main IPC: G06F16/23
- IPC: G06F16/23 ; G06F16/22 ; G06F16/25

Abstract:
Systems and methods for implementing record locking for transactions using a probabilistic data structure are described. This probabilistic structure enables adding of data records without growth of the data structure. The data structure includes a hash table for each of multiple hash functions, where entries in the respective hash tables store a transaction time and locking state. To lock a record, each hash function is applied to a record key to provide an index into a respective hash table and a minimum of the values stored in the hash tables is retrieved. If the retrieved value is less than a transaction time for a transaction attempting to lock the record, locking is permitted and the transaction time is recorded to each of the hash tables. To commit the transaction, the probabilistic data structure is atomically updated as part of the commit operation.
Information query