# US 2016/0253402 A1 · Adaptive data repartitioning and adaptive data replication

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

- Number: US 2016/0253402 A1
- Document ID: US20160253402A1
- Status: Published application
- Kind: A1
- Application number: 14/634,199
- Filed: 2015-02-27
- Published: 2016-09-01
- Earliest claimed: 2015-02-27
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Boris Klots; Vikas Aggarwal; Nipun Agarwal; John Kowtko; Felix Schmidt; Kantikiran Pasuppuleti
- Web page: https://patentgrep.com/patent/US20160253402A1

## CPC

- G06F 16/278: {Data partitioning, e.g. horizontal or vertical partitioning}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and apparatus for adaptive data repartitioning and adaptive data replication is provided. A data set stored in a distributed data processing system is partitioned by a first partitioning key. A live workload comprising a plurality of data processing commands is processed. While processing the live workload, statistical properties of the live workload are maintained. Based on the statistical properties of the live workload with respect to the data set, it is determined to replicate and/or repartition the data set by a second partitioning key. The replicated and/or repartitioned data set is partitioned by the second partitioning key.

## Claims

### Claim 1

A method comprising:
partitioning a data set stored in a distributed data processing system by a first partitioning key;
processing a live workload comprising a plurality of data processing commands;
while processing the live workload, maintaining statistical properties of the live workload;
based on the statistical properties of the live workload with respect to the data set, determining to repartition the data set by a second partitioning key;
repartitioning the data set in the distributed data processing system by the second partitioning key;
wherein the method is performed by one or more computing devices.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
partitioning a second data set stored in the distributed data processing system by a third partitioning key;
based on the statistical properties of the live workload with respect to the second data set, determining to replicate the second data set in the distributed data processing system based on a fourth partitioning key;
storing an additional copy of the second data set in the distributed data processing system, wherein the additional copy of the second data set is partitioned by the fourth partitioning key.

### Claim 3 (depends on 1)

The method of claim 1, wherein the first partitioning key is selected based on initial workload statistic values.

### Claim 4 (depends on 1)

The method of claim 1, wherein the first partitioning key is selected based on statistical properties of a sample workload.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining to repartition the data set by a second partitioning key is further based on an association strength between the first partitioning key and the second partitioning key.

### Claim 6 (depends on 1)

The method of claim 1, wherein the statistical properties comprise a selectivity metric for one or more data processing commands in the live workload, wherein the selectivity metric is based on an average amount of the data set required by the one or more data processing commands.

### Claim 7 (depends on 1)

The method of claim 1, wherein the statistical properties comprise a projection metric for one or more data processing commands in the live workload, wherein the projection metric is based on an average amount of the data set required by the one or more data processing commands.

### Claim 8 (depends on 1)

The method of claim 1, wherein the statistical properties comprise a key frequency metric for a particular partitioning key of the data set, wherein the key frequency metric is based on a frequency of access of the data set by the particular partitioning key in the live workload.

### Claim 9 (depends on 1)

The method of claim 1, wherein the statistical properties comprise a table frequency metric for the data set, wherein the table frequency metric is based on a frequency of access of the data set in the live workload.

### Claim 10

A method comprising:
partitioning a data set stored in a distributed data processing system by a first partitioning key;
processing a live workload comprising a plurality of data processing commands;
while processing the live workload, maintaining statistical properties of the live workload;
based on the statistical properties of the workload with respect to the data set, determining to replicate the data set in the distributed data processing system based on a second partitioning key;
storing an additional copy of the data set in the distributed data processing system, wherein the additional copy of the data set is partitioned by the second partitioning key;
wherein the method is performed by one or more computing devices.

### Claim 11 (depends on 10)

The method of claim 10, wherein said determining to replicate the data set is further based on an available amount of memory.

### Claim 12

A non-transitory computer-readable medium storing instructions which, when executed by one or more processors, cause performance of:
partitioning a data set stored in a distributed data processing system by a first partitioning key;
processing a live workload comprising a plurality of data processing commands;
while processing the live workload, maintaining statistical properties of the live workload;
based on the statistical properties of the live workload with respect to the data set, determining to repartition the data set by a second partitioning key;
repartitioning the data set in the distributed data processing system by the second partitioning key;
wherein the method is performed by one or more computing devices.

### Claim 13 (depends on 12)

The non-transitory computer-readable medium of claim 12, wherein the instructions further cause performance of:
partitioning a second data set stored in the distributed data processing system by a third partitioning key;
based on the statistical properties of the live workload with respect to the second data set, determining to replicate the second data set in the distributed data processing system based on a fourth partitioning key;
storing an additional copy of the second data set in the distributed data processing system, wherein the additional copy of the second data set is partitioned by the fourth partitioning key.

### Claim 14 (depends on 12)

The non-transitory computer-readable medium of claim 12, wherein the first partitioning key is selected based on initial workload statistic values.

### Claim 15 (depends on 12)

The non-transitory computer-readable medium of claim 12, wherein the first partitioning key is selected based on statistical properties of a sample workload.

### Claim 16 (depends on 12)

The non-transitory computer-readable medium of claim 12, wherein determining to repartition the data set by a second partitioning key is further based on an association strength between the first partitioning key and the second partitioning key.

### Claim 17 (depends on 12)

The non-transitory computer-readable medium of claim 12, wherein the statistical properties comprise a selectivity metric for one or more data processing commands in the live workload, wherein the selectivity metric is based on an average amount of the data set required by the one or more data processing commands.

### Claim 18 (depends on 12)

The non-transitory computer-readable medium of claim 12, wherein the statistical properties comprise a projection metric for one or more data processing commands in the live workload, wherein the projection metric is based on an average amount of the data set required by the one or more data processing commands.

### Claim 19 (depends on 12)

The non-transitory computer-readable medium of claim 12, wherein the statistical properties comprise a key frequency metric for a particular partitioning key of the data set, wherein the key frequency metric is based on a frequency of access of the data set by the particular partitioning key in the live workload.

### Claim 20 (depends on 12)

The non-transitory computer-readable medium of claim 12, wherein the statistical properties comprise a table frequency metric for the data set, wherein the table frequency metric is based on a frequency of access of the data set in the live workload.

### Claim 21

A non-transitory computer-readable medium storing instructions which, when executed by one or more processors, cause performance of:
partitioning a data set stored in a distributed data processing system by a first partitioning key;
processing a live workload comprising a plurality of data processing commands;
while processing the live workload, maintaining statistical properties of the live workload;
based on the statistical properties of the workload with respect to the data set, determining to replicate the data set in the distributed data processing system based on a second partitioning key;
storing an additional copy of the data set in the distributed data processing system, wherein the additional copy of the data set is partitioned by the second partitioning key;
wherein the method is performed by one or more computing devices.

### Claim 22 (depends on 21)

The non-transitory computer-readable medium of claim 21, wherein said determining to replicate the data set is further based on an available amount of memory.
