# US 2015/0178343 A1 · Distributed Transaction Management With Tokens

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2015/0178343 A1
- Document ID: US20150178343A1
- Status: Published application
- Kind: A1
- Application number: 14/642,941
- Filed: 2015-03-10
- Published: 2015-06-25
- Earliest claimed: 2010-10-05
- Assignees: Sap SE
- Inventors: Frank Renkes; Juchang Lee
- Web page: https://patentgrep.com/patent/US20150178343A1

## CPC

- G06F 16/332: Query formulation
- G06F 16/2228: {Indexing structures}
- G06F 16/2343: {Locking methods, e.g. distributed locking or locking implementation details}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 16/345: {Summarisation for human users}
- G06F 16/35: Clustering; Classification
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system, method and computer product for managing distributed transactions of a database. A transaction manager is provided for each of a plurality of transactions of the database. Each transaction manager is configured to perform functions that include generating a transaction token that specifies data to be visible for a transaction on the database. The database contains both row and column storage engines, and the transaction token includes a transaction identifier (TID) for identifying committed transactions and uncommitted transactions. A last computed transaction is designated with a computed identifier (CID), record-level locking of records of the database is performed using the TID and CID to execute the transaction, and the plurality of transactions of the database are executed with each transaction manager.

## Claims

### Claim 1

A computer-implemented method for managing transactions of a database, the method comprising:
generating, by a transaction manager, a transaction token specifying that changes to the database by some of a plurality of transactions are visible to a transaction associated with the transaction manager and that changes to the database by others of the plurality of transactions are not visible to the transaction associated with the transaction manager, the transaction token including a maximum visible computed identifier for identifying a plurality of committed transactions and a plurality of uncommitted transactions; and
performing record-level locking of records of the database using the transaction token to execute the transaction.

### Claim 2 (depends on 1)

The computer-implemented method in accordance with claim 1, further comprising:
performing record-level locking of records of the database using identifiers to execute the transaction by generating a main/history index as a persistent data structure, the main/history index having a computed identifier column.

### Claim 3 (depends on 2)

The computer-implemented method in accordance with claim 2, wherein performing record-level locking of records of the database using the transaction token to execute the transaction further comprises:
generating a delta index having rows and columns.

### Claim 4 (depends on 3)

The computer-implemented method in accordance with claim 3, wherein performing record-level locking of records of the database using the transaction token to execute the transaction further comprises:
storing a transaction identifier (TID) in every row and in a TID column of the delta index.

### Claim 5 (depends on 4)

The computer-implemented method in accordance with claim 4, wherein performing record-level locking of records of the database using the transaction token to execute the transaction further comprises:
for each of the uncommitted transactions that become committed, replacing the TID in the TID column of the delta index with a computed identifier (CID).

### Claim 6 (depends on 1)

The computer-implemented method in accordance with claim 1, wherein the transactions of the database are distributed transactions.

### Claim 7

A system comprising:
at least one data processor;
memory storing instructions which, when executed by the at least one data processor, causes the at least one data processor to perform operations comprising:
generating, by a transaction manager, a transaction token specifying that changes to the database by some of a plurality of transactions are visible to a transaction associated with the transaction manager and that changes to the database by others of the plurality of transactions are not visible to the transaction associated with the transaction manager, the transaction token including a maximum visible computed identifier for identifying a plurality of committed transactions and a plurality of uncommitted transactions; and
performing record-level locking of records of the database using the transaction token to execute the transaction.

### Claim 8 (depends on 7)

The system of claim 7, the operations further comprising:
performing record-level locking of records of the database using identifiers to execute the transaction by generating a main/history index as a persistent data structure, the main/history index having a computed identifier column.

### Claim 9 (depends on 8)

The system of claim 8, wherein performing record-level locking of records of the database using the transaction token to execute the transaction further comprises:
generating a delta index having rows and columns;

### Claim 10 (depends on 9)

The system of claim 9, wherein performing record-level locking of records of the database using the transaction token to execute the transaction further comprises:
storing a transaction identifier (TID) in every row and in a TID column of the delta index.

### Claim 11 (depends on 10)

The system of claim 10, wherein performing record-level locking of records of the database using the transaction token to execute the transaction further comprises:
for each of the uncommitted transactions that become committed, replacing the TID in the TID column of the delta index with a computed identifier (CID).

### Claim 12 (depends on 7)

The system of claim 7, wherein the transactions of the database are distributed transactions.

### Claim 13

A non-transitory computer program product storing instructions, which when executed by at least one data processor of at least one computing system, implement a method comprising:
generating, by a transaction manager, a transaction token specifying that changes to the database by some of a plurality of transactions are visible to a transaction associated with the transaction manager and that changes to the database by others of the plurality of transactions are not visible to the transaction associated with the transaction manager, the transaction token including a maximum visible computed identifier for identifying a plurality of committed transactions and a plurality of uncommitted transactions; and
performing record-level locking of records of the database using the transaction token to execute the transaction.

### Claim 14 (depends on 13)

The computer program product of claim 13, the method further comprising:
performing record-level locking of records of the database using identifiers to execute the transaction by generating a main/history index as a persistent data structure, the main/history index having a computed identifier column.

### Claim 15 (depends on 14)

The computer program product of claim 14, wherein performing record-level locking of records of the database using the transaction token to execute the transaction further comprises:
generating a delta index having rows and columns;

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein performing record-level locking of records of the database using the transaction token to execute the transaction further comprises:
storing a transaction identifier (TID) in every row and in a TID column of the delta index.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein performing record-level locking of records of the database using the transaction token to execute the transaction further comprises:
for each of the uncommitted transactions that become committed, replacing the TID in the TID column of the delta index with a computed identifier (CID).

### Claim 18 (depends on 13)

The computer program product of claim 13, wherein the transactions of the database are distributed transactions.
