# US 11,119,742 B2 · Cache efficient reading of result values in a column store database

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

- Number: US 11,119,742 B2
- Document ID: US11119742B2
- Status: Granted
- Kind: B2
- Application number: 16/565,254
- Filed: 2019-09-09
- Published: 2020-01-02
- Granted: 2021-09-14
- Earliest claimed: 2018-05-07
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Thomas Legler
- Web page: https://patentgrep.com/patent/US11119742B2

## CPC

- G06F 8/4442: {Reducing the number of cache misses; Data prefetching (cache prefetching G06F12/0862)}
- G06F 12/0844: Multiple simultaneous or quasi-simultaneous cache accessing
- G06F 12/0862: with prefetch
- G06F 16/221: {Column-oriented storage; Management thereof}
- G06F 16/24539: {using cached or materialised query results}
- G06F 16/24552: {Database cache management}
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 2212/1024: Latency reduction
- G06F 2212/163: Server or database system
- G06F 2212/463: File
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system for cache efficient reading of column values in a database is provided. In some aspects, the system performs operations including pre-fetching, asynchronously and in response to a request for data in a column store database system, a plurality of first values associated with the requested data. The request may identify a row of the column store database system associated with the requested data. The plurality of first values may be located in the row. The operations may further include storing the plurality of first values in a cache memory. The operations may further include pre-fetching, asynchronously and based on the plurality of first values, a plurality of second values. The operations may further include storing the plurality of second values in the cache memory. The operations may further include reading, in response to the storing the plurality of second values, the requested data from the cache memory.

## Claims

### Claim 1

A system, comprising:
at least one data processor; and
at least one memory storing instructions which, when executed by the at least one data processor, cause operations comprising:
pre-fetching, in response to a request for data in a column store database system, a plurality of first values associated with the requested data, the request identifying a row of the column store database system associated with the requested data, the plurality of first values located in the row;
pre-fetching, based on the pre-fetched plurality of first values, a plurality of second values; and
reading, from a cache memory storing the pre-fetched plurality of first values and the pre-fetched plurality of second values, the requested data including the pre-fetched plurality of first values and the pre-fetched plurality of second values.

### Claim 2 (depends on 1)

The system of claim 1, the operations further comprising:
determining a first value of the plurality of first values is associated with a second value in the plurality of second values, the first value and the second value associated with an attribute of the column store database system,
wherein the pre-fetching the plurality of second values is based on the determining.

### Claim 3 (depends on 1)

The system of claim 1, the operations further comprising:
receiving the request, the request identifying the row, the plurality of first columns, and the plurality of second columns of the column store database system associated with the requested data.

### Claim 4 (depends on 1)

The system of claim 1, wherein the pre-fetching the plurality of first values comprises asynchronously retrieving the plurality of first values from a main memory of the at least one memory.

### Claim 5 (depends on 1)

The system of claim 1, wherein the pre-fetching the plurality of first values comprises retrieving each of the plurality of first values from a different database table of the column store database system.

### Claim 6 (depends on 5)

The system of claim 5, wherein the pre-fetching the plurality of second values comprises asynchronously retrieving each of the plurality of second values from a database table associated with one of the plurality of first values.

### Claim 7 (depends on 1)

The system of claim 1, wherein the pre-fetching the plurality of second values comprises retrieving dictionary entries associated with the plurality of first values, wherein the plurality of first values comprise value identifiers of the dictionary entries.

### Claim 8 (depends on 1)

The system of claim 1, wherein the pre-fetching the plurality of first values comprises:
triggering a first pre-fetch call and a second pre-fetch call sequentially;
executing the first pre-fetch call in parallel with the second pre-fetch call.

### Claim 9 (depends on 8)

The system of claim 8, wherein the pre-fetching the plurality of second values comprises:
triggering a third pre-fetch call and a fourth pre-fetch call sequentially;
executing the third pre-fetch call in parallel with the fourth pre-fetch call.

### Claim 10

A method comprising:
pre-fetching, in response to a request for data in a column store database system, a plurality of first values associated with the requested data, the request identifying a row of the column store database system associated with the requested data, the plurality of first values located in the row;
pre-fetching, based on the pre-fetched plurality of first values, a plurality of second values; and
reading, from a cache memory storing the pre-fetched plurality of first values and the pre-fetched plurality of second values, the requested data including the pre-fetched plurality of first values and the pre-fetched plurality of second values.

### Claim 11 (depends on 10)

The method of claim 10, the operations further comprising:
determining a first value of the plurality of first values is associated with a second value in the plurality of second values, the first value and the second value associated with an attribute of the column store database system,
wherein the pre-fetching the plurality of second values is based on the determining.

### Claim 12 (depends on 10)

The method of claim 10, the operations further comprising:
receiving the request, the request identifying the row, the plurality of first columns, and the plurality of second columns of the column store database system associated with the requested data.

### Claim 13 (depends on 10)

The method of claim 10, wherein the pre-fetching the plurality of first values comprises retrieving the plurality of first values from a main memory of the at least one memory.

### Claim 14 (depends on 10)

The method of claim 10, wherein the pre-fetching the plurality of first values comprises retrieving each of the plurality of first values from a different database table of the column store database system.

### Claim 15 (depends on 10)

The method of claim 10, wherein the pre-fetching the plurality of second values comprises retrieving dictionary entries associated with the plurality of first values, wherein the plurality of first values comprise value identifiers of the dictionary entries.

### Claim 16 (depends on 10)

The method of claim 10, wherein the pre-fetching the plurality of first values comprises:
triggering a first pre-fetch call and a second pre-fetch call sequentially; and
executing the first pre-fetch call in parallel with the second pre-fetch call.

### Claim 17 (depends on 16)

The method of claim 16, wherein the pre-fetching the plurality of second values comprises:
triggering a third pre-fetch call and a fourth pre-fetch call sequentially; and
executing the third pre-fetch call in parallel with the fourth pre-fetch call.

### Claim 18

A non-transitory computer readable medium storing instructions which, when executed by at least one processor, cause operations comprising:
pre-fetching, in response to a request for data in a column store database system, a plurality of first values associated with the requested data, the request identifying a row of the column store database system associated with the requested data, the plurality of first values located in the row;
pre-fetching, based on the pre-fetched plurality of first values, a plurality of second values; and
reading, from a cache memory storing the pre-fetched plurality of first values and the pre-fetched plurality of second values, the requested data including the pre-fetched plurality of first values and the pre-fetched plurality of second values.
