# US 2010/0250543 A1 · Efficient handling of multipart queries against relational data

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

- Number: US 2010/0250543 A1
- Document ID: US20100250543A1
- Status: Published application
- Kind: A1
- Application number: 12/813,041
- Filed: 2010-06-10
- Published: 2010-09-30
- Earliest claimed: 2005-09-29
- Assignees: Sap SE
- Inventors: Franz X. Faerber; Christian M. Bartholomae; Erich Marschall; Stefan Dipper; Guenter Radestock
- Web page: https://patentgrep.com/patent/US20100250543A1

## CPC

- G06F 16/24561: {Intermediate data storage techniques for performance improvement}
- Y10S 707/99933: Query processing, i.e. searching
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y10S: TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS

## Abstract

A query having multiple parts may be processed to form an intermediate results set. This intermediate results set may be partitioned into a plurality of groups. Thereafter, the groups may be sorted into a plurality of containers so that each container contains data sufficient to calculate one requested result in the multipart query. Related techniques, apparatuses, systems, and computer program products are also described.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving a multipart query at an engine executed on a processor;
processing, by the engine, the multipart query to form an intermediate results set;
accessing, by the engine, a matrix from a memory, the matrix including attributes of the multipart query;
mapping attributes requested by the multipart query with parts of the multipart query;
partitioning, by the engine, the intermediate results set into a plurality of groups, the partitioning being based on the matrix and the mapping of attributes with the parts of the multipart query and occurring in at least one pass through the intermediate results set;
sorting the groups into a plurality of containers according to the matrix, so that each container contains data to calculate one result in the multipart query;
processing, by the engine, the groups sorted into the plurality of containers; and
generating a final results set containing results requested in the multipart query based on processing the groups.

### Claim 2 (depends on 1)

A method as in claim 1, wherein the plurality of groups are pairwise disjoint.

### Claim 3 (depends on 1)

A method as in claim 1, further comprising loading, by the engine, relational data required to generate the intermediate results set into a memory device.

### Claim 4 (depends on 1)

A method as in claim 1, further comprising outputting the final results set by the engine to a communications network.

### Claim 5 (depends on 1)

A method as in claim 1, further comprising storing the final results set in a repository.

### Claim 6

An apparatus to handle a multipart query against relational data, the apparatus comprising:
an input processor to receive the multipart query, to map attributes requested by the multipart query with parts of the multipart query, and to define groups based on the mapping of the attributes to the parts of the multipart query to generate an intermediate results set;
an engine to partition the intermediate results set according to the groups and based on a matrix representing the attributes of the multipart query and the parts of the multipart query; and
an output processor to sort, based on the matrix, the groups into a plurality of containers so that each container contains data to calculate one requested result in the multipart query, the output processor further configured to generate a final results set containing results requested in the multipart query based on the groups sorted into the plurality of containers.

### Claim 7 (depends on 6)

An apparatus as in claim 6, further comprising a data repository operable to store the relational data.

### Claim 8 (depends on 6)

An apparatus as in claim 6, wherein the output processor is operable to process the sorted groups as pairwise disjoint.

### Claim 9 (depends on 6)

An apparatus as in claim 6, wherein the engine is operable to partition the intermediate results set into the plurality of groups during a single pass through the intermediate results set.

### Claim 10 (depends on 6)

An apparatus as in claim 6, further comprising a memory device to receive the relational data required to generate the intermediate results set.

### Claim 11 (depends on 13)

An apparatus as in claim 13, further comprising a transmitter to transmit the final results set to a remote client over a communications network.

### Claim 12

A computer program product, tangibly embodied on a machine-readable storage medium, configured to cause a data processing apparatus to:
receive a multipart query at an engine executed on a processor;
process the multipart query to form an intermediate results set;
access a matrix from a memory, the matrix including attributes of the multipart query;
map attributes requested by the multipart query with parts of the multipart query;
partition the intermediate results set into a plurality of groups, the partitioning being based on the matrix and the mapping of attributes with the parts of the multipart query and occurring in at least one pass through the intermediate results set;
sort the groups into a plurality of containers according to the matrix, so that each container contains data to calculate one result in the multipart query;
process the groups sorted into the plurality of containers; and
generate a final results set containing results requested in the multipart query based on processing the groups.

### Claim 13 (depends on 12)

A computer program product as in claim 12, wherein the plurality of groups are pairwise disjoint.

### Claim 14 (depends on 12)

A computer program product as in claim 12, further configured to cause a data processing apparatus to load relational data required to generate the intermediate results set into a memory device.

### Claim 15 (depends on 12)

A computer program product as in claim 12, further configured to cause a data processing apparatus to output the final results set to a communications network.

### Claim 16 (depends on 12)

A computer program product as in claim 12, further configured to cause a data processing apparatus to store the final results set in a repository.
