# US 2021/0334257 A1 · Pageable hash index for document store

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

- Number: US 2021/0334257 A1
- Document ID: US20210334257A1
- Status: Published application
- Kind: A1
- Application number: 16/898,143
- Filed: 2020-06-10
- Published: 2021-10-28
- Earliest claimed: 2020-04-27
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Christian Bensberg; Daniel Ritter; Neeraj Kulkarni
- Web page: https://patentgrep.com/patent/US20210334257A1

## CPC

- G06F 16/2255: {Hash tables}
- G06F 16/94: {Hypermedia (Hyperlinking G06F40/134)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, a system, and a computer program product for generating a pageable hash index for a document store. A hash map index for data stored on disk using a document array is generated. The hash map index includes a plurality of hash values with each hash value identifying a document stored at a predetermined location in the document array. A transaction for executing using a first document stored in the document array is received. Using the generated hash map index, a location of the first document stored in the document array is identified. At least a portion of a first hash value of the hash map index corresponding to the first document is loaded into a memory location without loading the remaining hashes of the hash map index. Based on the loaded portion of the first hash value, the received transaction is executed.

## Claims

### Claim 1

A computer-implemented method, comprising:
generating a hash map index for data stored on disk using a document array, the hash map index including a plurality of hash values, each hash value in the plurality of hash values identifying a document stored at a predetermined location in the document array;
receiving a transaction for executing using a first document stored in the document array;
identifying, using the generated hash map index, a location of the first document stored in the document array;
loading, into a memory location, at least a portion of a first hash value of the hash map index corresponding to the first document without loading the remaining hashes of the hash map index; and
executing, based on the loaded portion of the first hash value, the received transaction.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the document array includes a plurality of linked documents.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the identifying includes locating at least a second document stored in the document array based on the identification of the first document.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the loaded portion of the first hash value includes most-significant bits of the first hash value, wherein the most-significant bits of the first hash value correspond to the most-significant bits of a value in the first document.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the transaction includes at least one of the following: a data insert transaction, a data update transaction, a data delete transaction, a data read transaction, a data write transaction, and any combination thereof.

### Claim 6 (depends on 1)

The method according to claim 1, further comprising allowing at least one of the following: a plurality of read transaction on the data stored in the document store, a single write transaction at a time on the data stored in the document store, and any combination thereof.

### Claim 7 (depends on 1)

The method according to claim 1, further comprising
determining a threshold commit timestamp value for the received transaction;
identifying one or more hash values in the hash map index corresponding to commit timestamp values being less than the threshold commit timestamp value;
storing the identified one or more hash values in a checkpoint set; and
truncating a transaction log corresponding to the received transaction at a location corresponding to a location of the determined threshold commit timestamp in the transaction log, and erasing data previously stored in the checkpoint set; and
executing commit of the received transaction with respect to the stored one or more hash values.

### Claim 8

A system comprising:
at least one programmable processor; and
a non-transitory 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:
generating a hash map index for data stored on disk using a document array, the hash map index including a plurality of hash values, each hash value in the plurality of hash values identifying a document stored at a predetermined location in the document array;
receiving a transaction for executing using a first document stored in the document array;
identifying, using the generated hash map index, a location of the first document stored in the document array;
loading, into a memory location, at least a portion of a first hash value of the hash map index corresponding to the first document without loading the remaining hashes of the hash map index; and
executing, based on the loaded portion of the first hash value, the received transaction.

### Claim 9 (depends on 8)

The system according to claim 8, wherein the document array includes a plurality of linked documents.

### Claim 10 (depends on 9)

The system according to claim 9, wherein the identifying includes locating at least a second document stored in the document array based on the identification of the first document.

### Claim 11 (depends on 8)

The system according to claim 8, wherein the loaded portion of the first hash value includes most-significant bits of the first hash value, wherein the most-significant bits of the first hash value correspond to the most-significant bits of a value in the first document.

### Claim 12 (depends on 8)

The system according to claim 8, wherein the transaction includes at least one of the following: a data insert transaction, a data update transaction, a data delete transaction, a data read transaction, a data write transaction, and any combination thereof.

### Claim 13 (depends on 8)

The system according to claim 8, wherein the operations further comprise allowing at least one of the following: a plurality of read transaction on the data stored in the document store, a single write transaction at a time on the data stored in the document store, and any combination thereof.

### Claim 14 (depends on 8)

The system according to claim 8, wherein the operations further comprise
determining a threshold commit timestamp value for the received transaction;
identifying one or more hash values in the hash map index corresponding to commit timestamp values being less than the threshold commit timestamp value;
storing the identified one or more hash values in a checkpoint set; and
truncating a transaction log corresponding to the received transaction at a location corresponding to a location of the determined threshold commit timestamp in the transaction log, and erasing data previously stored in the checkpoint set; and
executing commit of the received transaction with respect to the stored one or more hash values.

### Claim 15

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:
generating a hash map index for data stored on disk using a document array, the hash map index including a plurality of hash values, each hash value in the plurality of hash values identifying a document stored at a predetermined location in the document array;
receiving a transaction for executing using a first document stored in the document array;
identifying, using the generated hash map index, a location of the first document stored in the document array;
loading, into a memory location, at least a portion of a first hash value of the hash map index corresponding to the first document without loading the remaining hashes of the hash map index; and
executing, based on the loaded portion of the first hash value, the received transaction.

### Claim 16 (depends on 15)

The computer program product according to claim 15, wherein the document array includes a plurality of linked documents;
wherein the identifying includes locating at least a second document stored in the document array based on the identification of the first document

### Claim 17 (depends on 15)

The computer program product according to claim 15, wherein the loaded portion of the first hash value includes most-significant bits of the first hash value, wherein the most-significant bits of the first hash value correspond to the most-significant bits of a value in the first document.

### Claim 18 (depends on 15)

The computer program product according to claim 15, wherein the transaction includes at least one of the following: a data insert transaction, a data update transaction, a data delete transaction, a data read transaction, a data write transaction, and any combination thereof.

### Claim 19 (depends on 15)

The computer program product according to claim 15, wherein the operations further comprise allowing at least one of the following: a plurality of read transaction on the data stored in the document store, a single write transaction at a time on the data stored in the document store, and any combination thereof.

### Claim 20 (depends on 15)

The computer program product according to claim 15, wherein the operations further comprise
determining a threshold commit timestamp value for the received transaction;
identifying one or more hash values in the hash map index corresponding to commit timestamp values being less than the threshold commit timestamp value;
storing the identified one or more hash values in a checkpoint set; and
truncating a transaction log corresponding to the received transaction at a location corresponding to a location of the determined threshold commit timestamp in the transaction log, and erasing data previously stored in the checkpoint set; and
executing commit of the received transaction with respect to the stored one or more hash values.
