# US 2023/0068358 A1 · Using self-maintaining structure information for faster data access

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

- Number: US 2023/0068358 A1
- Document ID: US20230068358A1
- Status: Published application
- Kind: A1
- Application number: 17/462,561
- Filed: 2021-08-31
- Published: 2023-03-02
- Earliest claimed: 2021-08-31
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Christian Bensberg
- Web page: https://patentgrep.com/patent/US20230068358A1

## CPC

- G06F 16/211: {Schema design and management}
- G06F 16/24542: {Plan optimisation}
- G06F 16/212: {with details for data modelling support}
- G06F 16/213: {with details for schema evolution support}
- G06F 16/2228: {Indexing structures}
- G06F 16/24562: {Pointer or reference processing operations}
- G06F 16/81: Indexing, e.g. XML tags; Data structures therefor; Storage structures
- G06F 16/8365: {Query optimisation}
- G06F 16/8373: {Query execution}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, a system, and a computer program product for accessing data. A schema representing a structure of an object in a plurality of objects stored in a storage location is generated. Each object includes one or more data elements. Each schema identifies one or more data elements of the object, an offset location of each data element of the object, and a value of each data element of the object. A query requesting access to one or more data elements is received. A generated schema in a plurality of generated schemas representing the queried object is identified. The elements are accessed using the identified generated schema, and retrieved.

## Claims

### Claim 1

A computer-implemented method, comprising:
generating a schema representing a structure of an object in a plurality of objects stored in a storage location, each object in the plurality of objects including one or more data elements, each schema identifying one or more data elements of the object, an offset location of each data element of the object, and a value of each data element of the object;
receiving a query requesting access to one or more data elements of the object in the plurality of objects;
identifying a generated schema in a plurality of generated schemas representing the queried object;
accessing, using the identified generated schema, the one or more data elements; and
retrieving the one or more data elements.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the generated schema is a fixed schema, the fixed schema preventing modification of the schema.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the generated schema is a mixed schema, the mixed schema allowing modification of the schema.

### Claim 4 (depends on 3)

The method according to claim 3, further comprising adding identification of one or more another data elements of the object, an offset location of each another data element of the object, and a value of each another data element of the object.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the accessing includes accessing the one or more another data elements of the object, and the retrieving includes retrieving the one or more another data elements of the object.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the generated schema identifies one or more skip lists permitting skipping at least a portion of the one or more data elements in the one or more data elements during the accessing and the retrieving, thereby reducing time for at least one of the accessing and the retrieving.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the schema identifies each skip list in the one or more skip lists using a skip list offset location in the object.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the generated schema identifies one or more offset location levels of each data element in the one or more data elements.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the receiving further comprises
generating a query execution plan for the received query;
determining, at a query compilation time of the received query, an offset location of a first data element in the one or more data elements;
storing, in the generated query execution plan of the received query, the determined offset location of the first data element; and
storing the generated query execution plan;
the method further comprising
receiving another query to access the first data element; and
accessing, using the stored query execution plan, the first data element.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the object in the plurality of objects does not include an object schema.

### Claim 11

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 schema representing a structure of an object in a plurality of objects stored in a storage location, each object in the plurality of objects including one or more data elements, each schema identifying one or more data elements of the object, an offset location of each data element of the object, and a value of each data element of the object;
receiving a query requesting access to one or more data elements of the object in the plurality of objects;
identifying a generated schema in a plurality of generated schemas representing the queried object;
accessing, using the identified generated schema, the one or more data elements; and
retrieving the one or more data elements.

### Claim 12 (depends on 11)

The system according to claim 11, wherein the generated schema is a fixed schema, the fixed schema preventing modification of the schema.

### Claim 13 (depends on 11)

The system according to claim 11, wherein the generated schema is a mixed schema, the mixed schema allowing modification of the schema.

### Claim 14 (depends on 13)

The system according to claim 13, wherein the operations further comprise adding identification of one or more another data elements of the object, an offset location of each another data element of the object, and a value of each another data element of the object.

### Claim 15 (depends on 14)

The system according to claim 14, wherein the accessing includes accessing the one or more another data elements of the object, and the retrieving includes retrieving the one or more another data elements of the object.

### Claim 16 (depends on 11)

The system according to claim 11, wherein the generated schema identifies one or more skip lists permitting skipping at least a portion of the one or more data elements in the one or more data elements during the accessing and the retrieving, thereby reducing time for at least one of the accessing and the retrieving;
wherein the schema identifies each skip list in the one or more skip lists using a skip list offset location in the object.

### Claim 17 (depends on 11)

The system according to claim 11, wherein the generated schema identifies one or more offset location levels of each data element in the one or more data elements.

### Claim 18 (depends on 11)

The system according to claim 11, wherein the receiving further comprises
generating a query execution plan for the received query;
determining, at a query compilation time of the received query, an offset location of a first data element in the one or more data elements;
storing, in the generated query execution plan of the received query, the determined offset location of the first data element; and
storing the generated query execution plan;
the operations further comprising
receiving another query to access the first data element; and
accessing, using the stored query execution plan, the first data element.

### Claim 19 (depends on 11)

The system according to claim 11, wherein the object in the plurality of objects does not include an object schema.

### 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:
generating a schema representing a structure of an object in a plurality of objects stored in a storage location, each object in the plurality of objects including one or more data elements, each schema identifying one or more data elements of the object, an offset location of each data element of the object, and a value of each data element of the object;
receiving a query requesting access to one or more data elements of the object in the plurality of objects;
identifying a generated schema in a plurality of generated schemas representing the queried obj ect;
accessing, using the identified generated schema, the one or more data elements; and
retrieving the one or more data elements.
