# US 12,650,955 B2 · System and method for editing a file-backed database table

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

- Number: US 12,650,955 B2
- Document ID: US12650955B2
- Status: Granted
- Kind: B2
- Application number: 18/667,187
- Filed: 2024-05-17
- Published: 2024-11-28
- Granted: 2026-06-09
- Earliest claimed: 2023-05-26
- Assignees: Kinaxis Inc.
- Applicants: Kinaxis Inc.
- Inventors: Angela Lin; Jim Crozman
- Web page: https://patentgrep.com/patent/US12650955B2

## CPC

- G06F 16/1767: {Concurrency control, e.g. optimistic or pessimistic approaches}
- G06F 16/162: {Delete operations (erasing in storage systems G06F3/0652)}
- G06F 16/2282: {Tablespace storage structures; Management thereof}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for editing a file-backed table in a database having a concurrency control mechanism, that include reading the content of the file-backed table, and modifying the content of the file-backed table.

## Claims

### Claim 1

A computing apparatus comprising:
a processor; and
a memory storing instructions that, when executed by the processor, configure the apparatus to:
read, by the processor, content of a file-backed table in a database having a concurrency control mechanism; and
modify, by the processor, the content of the file-backed table,
wherein when modifying the content of the file-backed table, the instructions further configure the apparatus to:
write, by the processor, one or more new data files that contain modified content of the file-backed table; and
update, by the processor, a metadata table that comprises metadata for the file-backed table, by using the concurrency control mechanism of the database;
wherein the instructions further configure the apparatus to modify content of the file-backed table by an operation selected from: an insertion of one or more records; a deletion of one or more records; an update one or more existing records, or any combination thereof.

### Claim 2 (depends on 1)

The computing apparatus of claim 1, wherein:
when reading the content of the file-backed table, the instructions further configure the apparatus to:
scan, by the processor, a metadata table that contains metadata for the file-backed table;
determine, by the processor, one or more metadata records that are visible by using the concurrency control mechanism of the database; and
return, by the processor, content of one or more data files that correspond to the one or more metadata records that are visible.

### Claim 3 (depends on 1)

The computing apparatus of claim 1, wherein when the modified content is the insertion of one or more records, the instructions further configure the apparatus to:
write, by the processor, the one or more new data files that contain the one or more inserted records; and
insert, by the processor, one or more new metadata records into the metadata table, the one or more new metadata records referencing the one or more new data files.

### Claim 4 (depends on 1)

The computing apparatus of claim 1, wherein when the modified content is the deletion of one or more records, the instructions further configure the apparatus to:
locate, by the processor, one or more data files that contain the one or more records to be deleted;
make, by the processor, a new copy of each of the one or more data files, each new copy omitting the one or more records that are to be deleted;
locate, by the processor, one or more metadata records that correspond to the new copy of each of the one or more data files; and
update, by the processor, a data file locator in each of the one or more metadata records to point to the new copy of each of the one or more data files; and
where the new copy of each of the one or more data files is empty:
delete, by the processor, the one or more metadata records that correspond to the new copy of each of the one or more data files.

### Claim 5 (depends on 1)

The computing apparatus of claim 1, wherein when the modified content is updating the one or more existing records, the instructions further configure the apparatus to:
locate, by the processor, one or more data files that contain the one or more existing records to be updated;
make, by the processor, a new copy of each of the one or more data files, each new copy including the one or more existing records to be updated;
locate, by the processor, one or more metadata records that correspond to the new copy of each of the one or more data files; and
update, by the processor, a data file locator in each of the one or more metadata records to point to the new copy of each of the one or more data files.

### Claim 6

A non-transitory computer-readable storage medium, the computer-readable storage medium including instructions that when executed by a computer, cause the computer to:
read, by a processor, content of a file-backed table in a database having a concurrency control mechanism; and
modify, by the processor, the content of the file-backed table,
wherein when modifying the content of the file-backed table, the instructions further cause the computer to:
write, by the processor, one or more new data files that contain modified content of the file-backed table; and
update, by the processor, a metadata table that comprises metadata for the file-backed table, by using the concurrency control mechanism of the database;
wherein the instructions further cause the computer to modify content of the file-backed table by an operation selected from: an insertion of one or more records; a deletion of one or more records; an update one or more existing records, or any combination thereof.

### Claim 7 (depends on 6)

The computer-readable storage medium of claim 6, wherein:
when reading the content of the file-backed table, the instructions further cause the computer to:
scan, by the processor, a metadata table that contains metadata for the file-backed table;
determine, by the processor, one or more metadata records that are visible by using the concurrency control mechanism of the database; and
return, by the processor, content of one or more data files that correspond to the one or more metadata records that are visible.

### Claim 8 (depends on 6)

The computer-readable storage medium of claim 6, wherein:
when the modified content is the insertion of one or more records, and the instructions further configure the computer to:
write, by the processor, the one or more new data files that contain the one or more inserted records; and
insert, by the processor, one or more new metadata records into the metadata table, the one or more new metadata records referencing the one or more new data files.

### Claim 9 (depends on 6)

The computer-readable storage medium of claim 6, wherein:
when the modified content is the deletion of one or more records, and the instructions further configure the computer to:
locate, by the processor, one or more data files that contain the one or more records to be deleted;
make, by the processor, a new copy of each of the one or more data files, each new copy omitting the one or more records that are to be deleted;
locate, by the processor, one or more metadata records that correspond to the new copy of each of the one or more data files; and
update, by the processor, a data file locator in each of the one or more metadata records to point to the new copy of each of the one or more data files; and
where the new copy of each of the one or more data files is empty:
delete, by the processor, the one or more metadata records that correspond to the new copy of each of the one or more data files.

### Claim 10 (depends on 6)

The computer-readable storage medium of claim 6, wherein:
when the modified content is the updating the one or more existing records, and the instructions further configure the computer to:
locate, by the processor, one or more data files that contain the one or more existing records to be updated;
make, by the processor, a new copy of each of the one or more data files, each new copy including the one or more existing records to be updated;
locate, by the processor, one or more metadata records that correspond to the new copy of each of the one or more data files; and
update, by the processor, a data file locator in each of the one or more metadata records to point to the new copy of each of the one or more data files.

### Claim 11

A computer-implemented method for editing a file-backed table in a database having a concurrency control mechanism, the method comprising:
reading, by a processor, content of the file-backed table; and
modifying, by the processor, the content of the file-backed table,
wherein modifying the content of the file-backed table comprises:
writing, by the processor, one or more new data files that contain modified content of the file-backed table; and
updating, by the processor, a metadata table that contains metadata for the file-backed table, by using the concurrency control mechanism of the database; and
wherein the modifying the content of the file-backed table is an operation by the processor configured to execute: an insertion of one or more records; a deletion of one or more records; an update one or more existing records, or any combination thereof.

### Claim 12 (depends on 11)

The computer-implemented method of claim 11, wherein:
reading the content of the file-backed table comprises:
scanning, by the processor, a metadata table that contains metadata for the file-backed table;
determining, by the processor, one or more metadata records that are visible by using the concurrency control mechanism of the database; and
returning, by the processor, content of one or more data files that correspond to the one or more metadata records that are visible.

### Claim 13 (depends on 11)

The computer-implemented method of claim 11, wherein when the modified content is the insertion of one or more records, the method further comprising:
writing, by the processor, the one or more new data files that contain the one or more inserted records; and
inserting, by the processor, one or more new metadata records into the metadata table, the one or more new metadata records referencing the one or more new data files.

### Claim 14 (depends on 11)

The computer-implemented method of claim 11, wherein when the modified content is the deletion of one or more records, the method further comprising:
locating, by the processor, one or more data files that contain the one or more records to be deleted;
making, by the processor, a new copy of each of the one or more data files, each new copy omitting the one or more records that are to be deleted;
locating, by the processor, one or more metadata records that correspond to the new copy of each of the one or more data files; and
updating, by the processor, a data file locator in each of the one or more metadata records to point to the new copy of each of the one or more data files; and
where the new copy of each of the one or more data files is empty:
deleting, by the processor, the one or more metadata records that correspond to the new copy of each of the one or more data files.

### Claim 15 (depends on 11)

The computer-implemented method of claim 11, wherein when the modified content is the updating the one or more existing records, the method further comprising:
locating, by the processor, one or more data files that contain the one or more existing records to be updated;
making, by the processor, a new copy of each of the one or more data files, each new copy including the one or more existing records to be updated;
locating, by the processor, one or more metadata records that correspond to the new copy of each of the one or more data files; and
updating, by the processor, a data file locator in each of the one or more metadata records to point to the new copy of each of the one or more data files.
