# US 2017/0293453 A1 · Unified architecture for hybrid database storage using fragments

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

- Number: US 2017/0293453 A1
- Document ID: US20170293453A1
- Status: Published application
- Kind: A1
- Application number: 15/632,110
- Filed: 2017-06-23
- Published: 2017-10-12
- Earliest claimed: 2013-03-12
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Ivan Schreter; Dirk Thomsen; Colin Florendo; Blaine French
- Web page: https://patentgrep.com/patent/US20170293453A1

## CPC

- G06F 3/0661: {Format or protocol conversion arrangements}
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/0673: {Single storage device}
- G06F 16/1744: {using compression, e.g. sparse files}
- G06F 16/22: Indexing; Data structures therefor; Storage structures
- G06F 16/221: {Column-oriented storage; Management thereof}
- G06F 16/2282: {Tablespace storage structures; Management thereof}
- G06F 16/23: Updating
- G06F 16/24554: {Unary operations; Data partitioning operations}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Data records of a data set can be stored in multiple main part fragments retained in on-disk storage. Each fragment can include a number of data records that is equal to or less than a defined maximum fragment size. Using a compression that is optimized for each fragment, each fragment can be compressed. After reading at least one of the fragments into main system memory from the on-disk storage, an operation can be performed on the fragment or fragments while the in the main system memory.

## Claims

### Claim at position 1

-19. (canceled)

### Claim 20

A computer program product comprising a non-transitory machine-readable medium storing instructions that, when executed by at least one programmable processor, cause the at least one programmable processor to perform operations comprising:
storing, in a plurality of fragments retained in on-disk storage, a plurality of data records that comprise a data set, each fragment of the plurality of fragments comprising a local row index, a mapping of the local row index to RowID values in a global RowID column for the data set;
compressing each fragment of the plurality of fragments using a compression that is optimized for each fragment;
reading at least one of the plurality of fragments into main system memory from the on-disk storage; and
performing an operation on the at least one of the plurality of fragments while the at least one of the plurality of fragments is in the main system memory.

### Claim 21 (depends on 20)

The computer program product as in claim 20, wherein the RowID values in the global RowID column are unique and logical references to the plurality data records of the data set.

### Claim 22 (depends on 20)

The computer program product as in claim 20, wherein the local row index of a fragment comprises physical locations of data records in the fragment, wherein a maximum fragment size of the fragment being smaller than an available amount of main system memory.

### Claim 23 (depends on 20)

The computer program product as in claim 20, wherein the operations further comprising executing a merge of the data set with a change to the data set, the merge comprising:
creating a temporary, in-memory data structure containing data from a fragment of the plurality of fragments and a committed row from the change to the data set;
sorting the temporary, in-memory data structure to maximize compression of the plurality of data records; and
storing data from the sorted, temporary, in-memory data structure to a revised fragment.

### Claim 24 (depends on 20)

The computer program product as in claim 20, wherein each of the plurality of fragments comprises at least one row set arranged in a temporal order, and a number of data records in the plurality of fragments is equal to or less than a defined fragment size.

### Claim 25 (depends on 20)

The computer program product as in claim 20, wherein the merge further comprises copying one or more uncommitted rows from the change of the data set to a delta part of a record.

### Claim 26 (depends on 25)

The computer program product as in claim 25, wherein the operations further comprise storing cleanup pointers at a start of the merge, the cleanup pointers indicating start and stop locations for the temporary data structure.

### Claim 27

A system comprising:
at least one processor; and
a machine-readable medium storing instructions that, when executed by the at least one programmable processor, cause the at least one programmable processor to perform operations comprising:
storing, in a plurality of fragments retained in on-disk storage, a plurality of data records that comprise a data set, each fragment of the plurality of fragments comprising a local row index, a mapping of the local row index to RowID values in a global RowID column for the data set;
compressing each fragment of the plurality of fragments using a compression that is optimized for each fragment;
reading at least one of the plurality of fragments into main system memory from the on-disk storage; and
performing an operation on the at least one of the plurality of fragments while the at least one of the plurality of fragments is in the main system memory.

### Claim 28 (depends on 27)

The system as in claim 27, wherein the RowID values in the global RowID column are unique and logical references to the plurality data records of the data set.

### Claim 29 (depends on 27)

The system as in claim 27, wherein the local row index of a fragment comprises physical locations of data records in the fragment, wherein a maximum fragment size of the fragment being smaller than an available amount of main system memory.

### Claim 30 (depends on 27)

The system as in claim 27, wherein the operations further comprising executing a merge of the data set with a change to the data set, the merge comprising:
creating a temporary, in-memory data structure containing data from a fragment of the plurality of fragments and a committed row from the change to the data set;
sorting the temporary, in-memory data structure to maximize compression of the plurality of data records; and
storing data from the sorted, temporary, in-memory data structure to a revised fragment.

### Claim 31 (depends on 27)

The system as in claim 27, wherein each of the plurality of fragments comprises at least one row set arranged in a temporal order, and a number of data records in the plurality of fragments is equal to or less than a defined fragment size.

### Claim 32 (depends on 27)

The system as in claim 27, wherein the merge further comprises copying one or more uncommitted rows from the change of the data set to a delta part of a record.

### Claim 33 (depends on 32)

The system as in claim 32, wherein the operations further comprise storing cleanup pointers at a start of the merge, the cleanup pointers indicating start and stop locations for the temporary data structure.

### Claim 34

A computer-implemented method comprising:
storing, in a plurality of fragments retained in on-disk storage, a plurality of data records that comprise a data set, each fragment of the plurality of fragments comprising a local row index, a mapping of the local row index to RowID values in a global RowID column for the data set;
compressing each fragment of the plurality of fragments using a compression that is optimized for each fragment;
reading at least one of the plurality of fragments into main system memory from the on-disk storage; and
performing an operation on the at least one of the plurality of fragments while the at least one of the plurality of fragments is in the main system memory.

### Claim 35 (depends on 34)

The computer-implemented method as in claim 34, wherein the RowID values in the global RowID column are unique and logical references to the plurality data records of the data set.

### Claim 36 (depends on 34)

The computer-implemented method as in claim 34, wherein the local row index of a fragment comprises physical locations of data records in the fragment, wherein a maximum fragment size of the fragment being smaller than an available amount of main system memory.

### Claim 37 (depends on 34)

The computer-implemented method as in claim 34, wherein the operations further comprising executing a merge of the data set with a change to the data set, the merge comprising:
creating a temporary, in-memory data structure containing data from a fragment of the plurality of fragments and a committed row from the change to the data set;
sorting the temporary, in-memory data structure to maximize compression of the plurality of data records; and
storing data from the sorted, temporary, in-memory data structure to a revised fragment.

### Claim 38 (depends on 34)

The computer-implemented method as in claim 34, wherein each of the plurality of fragments comprises at least one row set arranged in a temporal order, and a number of data records in the plurality of fragments is equal to or less than a defined fragment size.

### Claim 39 (depends on 34)

The computer-implemented method as in claim 34, wherein the merge further comprises copying one or more uncommitted rows from the change of the data set to a delta part of a record.
