# US 10,956,386 B2 · Methods and apparatuses for automated performance tuning of a data modeling platform

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

- Number: US 10,956,386 B2
- Document ID: US10956386B2
- Status: Granted
- Kind: B2
- Application number: 15/942,176
- Filed: 2018-03-30
- Published: 2019-10-03
- Granted: 2021-03-23
- Earliest claimed: 2018-03-30
- Assignees: McKesson Corporation
- Applicants: McKesson Corporation
- Inventors: Marion A. Brown; Keith Hoyle
- Web page: https://patentgrep.com/patent/US10956386B2

## CPC

- G06F 16/217: {Database tuning (G06F16/2282 takes precedence; database performance monitoring G06F11/3409)}
- G06F 16/2282: {Tablespace storage structures; Management thereof}
- G06F 11/3409: {for performance assessment}
- G06F 16/245: Query processing
- G06F 16/25: Integrating or interfacing systems involving database management systems
- G06F 16/23: Updating
- G06F 2201/835: Timestamp
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments are disclosed for automated performance tuning of a data modeling platform. An example method includes ingesting, using a tuning template, a set of records from one or more data sources into one or more stage tables in a staging layer of the data modeling platform. This example method further includes generating, using the one or more stage tables, a data integration layer of the data modeling platform for modeling data represented by the set of records ingested into the one or more stage tables. This example method further includes estimating an anticipated performance of the data modeling platform and generating an optimized tuning template based on the estimated anticipated performance. Finally, this example method further includes automatically executing a performance tuning operation on the data modeling platform. Corresponding apparatuses and computer program products are also provided.

## Claims

### Claim 1

A method for automated performance tuning of a data modeling platform, the method comprising:
ingesting, by data ingestion circuitry of the data modeling platform and using a tuning template, a set of records from one or more data sources into one or more stage tables in a staging layer of the data modeling platform, wherein the one or more stage tables comprise a set of standardized plumbing fields, wherein at least one of the standardized plumbing fields comprises a source primary key having a value that is a hash of an arrangement of related source data fields, the arrangement of the related source data fields identified according to instructions of the tuning template, for identifying the arrangement of the related source data fields;
generating, by data modeling circuitry of the data modeling platform and using the one or more stage tables, a data integration layer of the data modeling platform for modeling data represented by the set of records ingested into the one or more stage tables;
estimating, by tuning circuitry of the data modeling platform, an anticipated performance of the data modeling platform;
generating, by the tuning circuitry, a modified tuning template based on the estimated anticipated performance, the modified tuning template reflecting a change to the instructions for identifying the arrangement of the related source data fields included in the source primary key; and
automatically executing a performance tuning operation on the data modeling platform according to the modified tuning template, wherein the execution results in a change in the arrangement of the related source data fields included in the hash, and results in a change of the value of the source primary key.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
after automatically executing the performance tuning operation on the data modeling platform, processing a query using the data modeling platform.

### Claim 3 (depends on 1)

The method of claim 1, further comprising: ingesting a subsequent target record from a particular data source by:
storing a copy of the subsequent target record as a subsequent record in a particular stage table in the staging layer that corresponds to the particular data source;
adding the set of standardized plumbing fields into the subsequent record; and
applying the tuning template to the subsequent record to populate the set of standardized plumbing fields.

### Claim 4 (depends on 3)

The method of claim 3, wherein the tuning template comprises a set of instructions for populating each of the set of standardized plumbing fields using values from one or more other fields in the copy of the target record.

### Claim 5 (depends on 1)

The method of claim 1, wherein generating the data integration layer using the one or more stage tables comprises:
generating, by the data modeling circuitry, a data alignment table defining a desired set of data fields; and
generating, by the data modeling circuitry and using the one or more stage tables and the data alignment table, a key mapping table identifying correspondences between data fields in the one or more stage tables and data fields in the data alignment table.

### Claim 6 (depends on 5)

The method of claim 5, wherein generating the data alignment table includes:
identifying, by the data modeling circuitry and from within one of the one or more stage tables, a record having a unique combination of values for the desired set of data fields defined by the data alignment table;
generating, by the data modeling circuitry, a new record in the data alignment table corresponding to the identified record; and
populating fields in the data alignment table for the generated new record based on the unique combination of values.

### Claim 7 (depends on 1)

The method of claim 1, wherein the data integration layer comprises a plurality of partitions, and wherein estimating the anticipated performance of the data integration layer includes:
calculating, by the tuning circuitry, a number of records in each partition in the data integration layer;
determining, by the tuning circuitry and based on the number of records in each partition in the data integration layer, a degree of skew between partitions in the data integration layer; and
estimating, by the tuning circuitry, the anticipated performance of the data integration layer based on the determined degree of skew.

### Claim 8 (depends on 1)

The method of claim 1, wherein the modified tuning template comprises a tuning template that, when applied to all records in all stage tables in the staging layer, modifies all corresponding sets of standardized plumbing fields such that generating a data integration layer using the one or more stage tables will automatically performance-tune the data modeling platform.

### Claim 9 (depends on 1)

The method of claim 1, wherein the modified tuning template is received by communications circuitry of the data modeling platform.

### Claim 10 (depends on 1)

The method of claim 1, wherein automatically executing the performance tuning operation on the data modeling platform comprises:
applying the modified tuning template to all records in all stage tables in the staging layer to update all corresponding sets of standardized plumbing fields; and
in response to applying the modified tuning template, generating the data integration layer by the data modeling circuitry and using the one or more stage tables.

### Claim 11

An apparatus for automated performance tuning of a data modeling platform, the apparatus comprising:
data ingestion circuitry configured to ingest, using a tuning template, a set of records from one or more data sources into one or more stage tables in a staging layer of the data modeling platform, wherein the one or more stage tables comprise a set of standardized plumbing fields, wherein at least one of the standardized plumbing fields comprises a source primary key having a value that is a hash of an arrangement of related source data fields, the arrangement of the related source data fields identified according to instructions of the tuning template, for identifying the arrangement of the related source data fields;
data modeling circuitry configured to generate, using the one or more stage tables, a data integration layer of the data modeling platform for modeling data represented by the set of records ingested into the one or more stage tables; and
tuning circuitry configured to
estimate an anticipated performance of the data modeling platform, and
generate a modified tuning template based on the estimated anticipated performance, the modified tuning template reflecting a change to the instructions for identifying the arrangement of the related source data fields included in the source primary key;
wherein the apparatus is further configured to automatically execute a performance tuning operation on the data modeling platform according to the modified tuning template, wherein the execution results in a change in the arrangement of the related source data fields included in the hash according to the change in the instructions, and results in a change of the value of the source primary key.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the apparatus is further configured to:
after automatically executing the performance tuning operation on the data modeling platform, process a query using the data modeling platform.

### Claim 13 (depends on 11)

The apparatus of claim 11, wherein the data ingestion circuitry is further configured to ingest a subsequent target record from a particular data source by:
storing a copy of the subsequent target record as a subsequent record in a particular stage table in the staging layer that corresponds to the particular data source;
adding the set of standardized plumbing fields into the subsequent record; and
applying the tuning template to the record to populate the set of standardized plumbing fields.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the tuning template comprises a set of instructions for populating each of the set of standardized plumbing fields using values from one or more other fields in the copy of the target record.

### Claim 15 (depends on 11)

The apparatus of claim 11, wherein the data modeling circuitry is configured to generate the data integration layer using the one or more stage tables by:
generating a data alignment table defining a desired set of data fields; and
generating, using the one or more stage tables and the data alignment table, a key mapping table identifying correspondences between data fields in the one or more stage tables and data fields in the data alignment table.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the data modeling circuitry is configured to generate the data alignment table by:
identifying, from within one of the one or more stage tables, a record having a unique combination of values for the desired set of data fields defined by the data alignment table;
generating a new record in the data alignment table corresponding to the identified record; and
populating fields in the data alignment table for the generated new record based on the unique combination of values.

### Claim 17 (depends on 11)

The apparatus of claim 11, wherein the data integration layer comprises a plurality of partitions, and wherein the tuning circuitry is configured to estimate the anticipated performance of the data integration layer by:
calculating a number of records in each partition in the data integration layer;
determining, based on the number of records in each partition in the data integration layer, a degree of skew between partitions in the data integration layer; and
estimating the anticipated performance of the data integration layer based on the determined degree of skew.

### Claim 18 (depends on 11)

The apparatus of claim 11, wherein the modified tuning template comprises a tuning template that, when applied to all records in all stage tables in the staging layer, modifies all corresponding sets of standardized plumbing fields such that generating a data integration layer using the one or more stage tables will automatically performance-tune the data modeling platform.

### Claim 19 (depends on 11)

The apparatus of claim 11, wherein the apparatus is configured to automatically executing the performance tuning operation on the data modeling platform by:
applying the modified tuning template to all records in all stage tables in the staging layer to update all corresponding sets of standardized plumbing fields; and
in response to applying the modified tuning template, generate the data integration layer by the data modeling circuitry and using the one or more stage tables.

### Claim 20

A computer program product comprising at least one non-transitory computer-readable storage medium for automated performance tuning of a data modeling platform, the at least one non-transitory computer-readable storage medium storing computer-executable instructions that, when executed, cause an apparatus to:
ingest, using a tuning template, a set of records from one or more data sources into one or more stage tables in a staging layer of the data modeling platform, wherein the one or more stage tables comprise a set of standardized plumbing fields, wherein at least one of the standardized plumbing fields comprises a source primary key having a value that is a hash of an arrangement of related source data fields, the arrangement of the related source data fields identified according to instructions of the tuning template, for identifying the arrangement of the related source data fields;
generate, using the one or more stage tables, a data integration layer of the data modeling platform for modeling data represented by the set of records ingested into the one or more stage tables;
estimate an anticipated performance of the data modeling platform;
generate a modified tuning template based on the estimated anticipated performance, the modified tuning template reflecting a change to the instructions for identifying the arrangement of the related source data fields included in the source primary key; and
automatically execute a performance tuning operation on the data modeling platform according to the modified tuning template, wherein the execution results in a change in the arrangement of the related source data fields included in the hash according to the change in the instructions, and results in a change of the value of the source primary key.
