# US 2022/0027336 A1 · Updating multiple data records in a database

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

- Number: US 2022/0027336 A1
- Document ID: US20220027336A1
- Status: Published application
- Kind: A1
- Application number: 17/311,888
- Filed: 2019-12-19
- Published: 2022-01-27
- Earliest claimed: 2018-12-20
- Assignees: Amadeus S.A.S.
- Applicants: Amadeus S.A.S.
- Inventors: Tony Bisegna; Laurent Azemard; M'hammed Lahia; Minh Dung Dang; Xavier Bourgouin
- Web page: https://patentgrep.com/patent/US20220027336A1

## CPC

- G06F 16/2308: {Concurrency control (transaction processing G06F9/466)}
- G06F 16/2336: {Pessimistic concurrency control approaches, e.g. locking or multiple versions without time stamps}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Updating multiple data records in a database system with at least one database and a first server comprises creating a first session and loading, within the first session, the multiple data records stored by the database into a memory of the first server. Update at least a first and a second of the multiple data records during the first session in the memory of the first server. A database transaction mechanism writes back the multiple data records after updating the at least first and second data records to the database which insures that either all or none of the updated database records are committed. The database transaction mechanism includes a write lock over the first and second data records stored in the database.

## Claims

### Claim 1

A method of updating multiple data records in a database system comprising at least one database and a first server, the method comprising:
creating a first session in the first server;
loading, within the first session, the multiple data records stored by the database into a memory of the first server;
updating a first data record and a second data record of the multiple data records during the first session in the memory of the first server;
starting a database transaction mechanism for the multiple data records after updating the first data record and the second data record to write the updated data records to the database which insures that either all or none of the updated database records are committed, wherein the database transaction mechanism includes a write lock over the first data record and the second data record stored in the database; and
closing the first session in the first server after the updated database records are committed.

### Claim 2 (depends on 1)

The method of claim 1, wherein the multiple data records are loaded and updated without setting the write lock over the multiple data records in the database.

### Claim 3 (depends on 1)

The method of claim 1, wherein updating the first data record and the second data record further comprises:
setting at least one of the multiple data records as an active data record; and
applying updates to the data records set as active data records.

### Claim 4 (depends on 1)

The method of claim 1, wherein updating the first data record and the second data record further comprises:
sending a request to a further database.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
creating, within the first session, a new data record, wherein the new data record is committed together with the multiple data records.

### Claim 6 (depends on 5)

The method of claim 5, wherein creating the new data record comprises merging the first data record and the second data record.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
within a second session at the first server or at a second server running concurrently to the first session, loading at least the first data record stored by the database into the memory of the first server or a memory of the second server;
updating at least the first data record in the memory of the first server or the memory of the second server within the second session while the first data record is also updated within the first session; and
after the updated first data record was rewritten to the database from the first session, in response to a commit attempt to rewrite the first data record updated within the second session to the database, employing a rewrite consistency resolution mechanism during the transaction mechanism.

### Claim 8 (depends on 7)

The method of claim 7, wherein the rewrite consistency resolution mechanism is one of denying the commit attempt to rewrite the first data record updated within the second session to the database, reloading the first data record from the database and continuing the second session, and merging the updated first data record updated in the second session with the first data record rewritten to the database from the second session.

### Claim 9

A system for updating multiple data records in a database, the system comprising:
a server configured to:
create a first session in the server;
load, within the first session, multiple data records stored by the database into a memory of the server;
update at least a first and a second of the multiple data records during the first session in the memory of the server;
start a database transaction mechanism for the multiple data records after updating the at least first and second data records to write the updated data records to the database which insures that either all or none of the updated database records are committed, wherein the database transaction mechanism includes a write lock over the first and second data records stored in the database; and
close the first session in the server after the updated database records are committed.

### Claim at position 10

10-11. (canceled)

### Claim 12 (depends on 9)

The system of claim 9, wherein the multiple data records are loaded and updated without setting the write lock over the multiple data records in the database.

### Claim 13 (depends on 9)

The system of claim 9, wherein the server is configured to update the first data record and the second data record by:
setting at least one of the multiple data records as an active data record; and
applying updates to the data records set as active data records.

### Claim 14 (depends on 9)

The system of claim 9, wherein the server is configured to update the first data record and the second data record by:
sending a request to a further database.

### Claim 15 (depends on 9)

The system of claim 9, wherein the server is further configured to:
create, within the first session, a new data record, wherein the new data record is committed together with the multiple data records.

### Claim 16 (depends on 15)

The system of claim 15, wherein the server is configured to update the first data record and the second data record by:
merging the first data record and the second data record.

### Claim 17 (depends on 9)

The system of claim 9, wherein the server is configured to:
within a second session at the first server or at a second server running concurrently to the first session, load at least the first data record stored by the database into the memory of the first server or a memory of the second server;
update at least the first data record in the memory of the first server or the memory of the second server within the second session while the first data record is also updated within the first session; and
after the updated first data record was rewritten to the database from the first session, in response to a commit attempt to rewrite the first data record updated within the second session to the database, employ a rewrite consistency resolution mechanism during the transaction mechanism.

### Claim 18 (depends on 17)

The system of claim 17, wherein the rewrite consistency resolution mechanism is one of denying the commit attempt to rewrite the first data record updated within the second session to the database, reloading the first data record from the database and continuing the second session, and merging the updated first data record updated in the second session with the first data record rewritten to the database from the second session.

### Claim 19

A non-transitory computer-readable storage medium comprising instructions that upon execution by a processor of a computing device cause the computing device update multiple data records in a database, wherein the instructions comprise:
create a first session in the server;
load, within the first session, multiple data records stored by the database into a memory of the server;
update at least a first and a second of the multiple data records during the first session in the memory of the server;
start a database transaction mechanism for the multiple data records after updating the at least first and second data records to write the updated data records to the database which insures that either all or none of the updated database records are committed, wherein the database transaction mechanism includes a write lock over the first and second data records stored in the database; and
close the first session in the server after the updated database records are committed.
