# US 2021/0173838 A1 · Intelligent sharing pagination mechanism adaptive to huge data

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

- Number: US 2021/0173838 A1
- Document ID: US20210173838A1
- Status: Published application
- Kind: A1
- Application number: 16/705,753
- Filed: 2019-12-06
- Published: 2021-06-10
- Earliest claimed: 2019-12-06
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Xia Yu; Baolin He; Jie Yao
- Web page: https://patentgrep.com/patent/US20210173838A1

## CPC

- G06F 16/128: {Details of file system snapshots on the file-level, e.g. snapshot creation, administration, deletion (error detection or correction of the data by redundancy in operations or in hardware G06F11/14, G06F11/16)}
- G06F 16/24539: {using cached or materialised query results}
- G06F 16/2282: {Tablespace storage structures; Management thereof}
- 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

Disclosed herein are system, method, and computer program product embodiments for processing a data query from a user device. In an embodiment, a data storage operator receives the data query from the user device. The data storage operator determines that the data query is a snapshot query and the snapshot query does not have a skiptoken. The data storage operator then determines that the snapshot query satisfies snapshot conditions and takes a snapshot based on the snapshot query. The data storage operator stores the snapshot into the snapshot storage and extracts data from a data storage based on the snapshot. The disclosed system enables an intelligent data query by determining whether or not to perform snapshot query. When performing snapshot query, the snapshot is stored in the snapshot storage for future use. In such a case, the data query is efficient and accurate.

## Claims

### Claim 1

A computer-implemented method for processing a data query, comprising:
receiving, by one or more computing devices, the data query including a snapshot query;
taking, by the one or more computing devices, a snapshot based on the snapshot query being received for a first time and satisfying snapshot conditions;
storing, by the one or more computing devices, the snapshot into the snapshot storage, wherein the snapshot contains more than a predetermined number of rows; and
extracting, by the one or more computing devices, data from a data storage based on the snapshot.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the determining that the data query is the snapshot query is based on a snapshot query indicator in the data query or an amount of data requested by the data query.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the snapshot conditions are based on an availability of the snapshot storage or a minimal number of rows of the data requested by the snapshot query.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the snapshot storage is a memory snapshot storage or a disk snapshot storage.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the snapshot comprises business keys that contain locations of the data.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising:
calculating, by the one or more computing devices, an index of the snapshot;
determining, by the one or more computing devices, that the index is smaller than a stored index in a snapshot storage table; and
updating, by the one or more computing devices, the snapshot storage table by removing entries in a row containing the stored index and storing the snapshot information in the row of the snapshot storage table.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the predetermined number of rows is a number of rows contained in one display page of a user device.

### Claim 8

A system, comprising:
a memory; and
at least one processor coupled to the memory and configured to:
receive a data query including a snapshot query;
take a snapshot based on the snapshot query being received for a first time and satisfying snapshot conditions;
store the snapshot into the snapshot storage, wherein the snapshot contains more than a predetermined number of rows; and
extract data from a data storage based on the snapshot.

### Claim 9 (depends on 8)

The system of claim 8, wherein to determine that the data query is the snapshot query, the at least one processor is configured to determine that the data query is the snapshot query based on a snapshot query indicator in the data query or an amount of data requested by the data query.

### Claim 10 (depends on 8)

The system of claim 8, wherein the snapshot conditions are based on an availability of the snapshot storage or a minimal number of rows of the data requested by the snapshot query.

### Claim 11 (depends on 8)

The system of claim 8, wherein the snapshot storage is a memory snapshot storage or a disk snapshot storage.

### Claim 12 (depends on 8)

The system of claim 8, wherein the snapshot comprises business keys that contain locations of the data.

### Claim 13 (depends on 8)

The system of claim 8, wherein the at least one processor is further configured to:
calculate an index of the snapshot;
determine that the index is smaller than a stored index in a snapshot storage table; and
update the snapshot storage table by removing entries in a row containing the stored index and storing the snapshot information in the row of the snapshot storage table.

### Claim 14 (depends on 8)

The system of claim 8, wherein the predetermined number of rows is a number of rows contained in one display page of a user device.

### Claim 15

A non-transitory computer-readable device having instructions stored thereon that, when executed by at least one computing device, causes the at least one computing device to perform operations to process a data query, the operations comprising:
receiving the data query including a snapshot query;
taking a snapshot based on the snapshot query being received for a first time and satisfying snapshot conditions;
storing the snapshot into the snapshot storage, wherein the snapshot contains more than a predetermined number of rows; and
extracting data from a data storage based on the snapshot.

### Claim 16 (depends on 15)

The device of claim 15, wherein the determining that the data query is the snapshot query is based on a snapshot query indicator in the data query or an amount of data requested by the data query.

### Claim 17 (depends on 15)

The device of claim 15, wherein the snapshot conditions are based on an availability of the snapshot storage or a minimal number of rows of the data requested by the snapshot query.

### Claim 18 (depends on 15)

The device of claim 15, wherein the snapshot storage is a memory snapshot storage or a disk snapshot storage.

### Claim 19 (depends on 15)

The device of claim 15, wherein the snapshot comprises business keys that contain locations of the data.

### Claim 20 (depends on 15)

The device of claim 15, the operations further comprising:
calculating an index of the snapshot;
determining that the index is smaller than a stored index in a snapshot storage table; and
updating the snapshot storage table by removing entries in a row containing the stored index and storing the snapshot information in the row of the snapshot storage table.
