# US 2015/0149513 A1 · Table redistribution in distributed databases

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

- Number: US 2015/0149513 A1
- Document ID: US20150149513A1
- Status: Published application
- Kind: A1
- Application number: 14/090,783
- Filed: 2013-11-26
- Published: 2015-05-28
- Earliest claimed: 2013-11-26
- Assignees: Sap SE
- Inventors: Johannes Beigel; Christian Bensberg; Hans-Joerg Leu; Lars Fricke
- Web page: https://patentgrep.com/patent/US20150149513A1

## CPC

- G06F 16/2282: {Tablespace storage structures; Management thereof}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Tables in a distributed database can require redistribution, for example to provide improved collocation of tables or table partitions that require joining at a node of multiple nodes across which the distributed database is distributed. Based at least in part on a set of table redistribution parameters, a table redistribution plan can be generated to include redistribution of a table from a first node to a second node. The set of table redistribution parameters can include a grouping parameter indicating at least one other table with which the table should be collocated. The table redistribution plan can be executed to cause the moving of the table from the first node to the second node.

## Claims

### Claim 1

A computer program product comprising a 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:
determining that a redistribution of a plurality of tables is required in a distributed in-memory database, the distributed in-memory database comprising a plurality of tables located on a plurality of distributed nodes;
generating, based at least in part on a set of table redistribution parameters, a table redistribution plan comprising redistribution of a table of the plurality of tables, the set of table redistribution parameters comprising a grouping parameter indicating at least one other table with which the table should be collocated; and
executing the table redistribution plan, the executing comprising moving the table from a first node of the plurality of distributed nodes to a second node of the plurality of distributed nodes.

### Claim 2 (depends on 1)

A computer program product as in claim 1, wherein the moving occurs during runtime, and the moving comprises moving a working memory part of the table and/or table partition to the second node but not moving a persistence part of the table and/or table partition.

### Claim 3 (depends on 1)

A computer program product as in claim 1, wherein the operations further comprise writing the persistence part to the second node during a next delta merge of the distributed database.

### Claim 4 (depends on 1)

A computer program product as in claim 1, wherein the table redistribution plan comprises requiring that all tables having a same group name have a same number of level 1 partitions, and wherein the operations further comprise determining a number of partitions required for a largest table of the tables having the same group name and using that number of partitions as the same number of level partitions for all of the table having the same group name.

### Claim 5 (depends on 1)

A computer program as in claim 1, wherein the set of table redistribution parameters further comprises at least one of a database landscape makeup, a hardware constraint representative of the plurality of nodes, and table classification information pertaining to the table.

### Claim 6

A system comprising:
computer circuitry configured to perform operations comprising:
determining that a redistribution of a plurality of tables is required in a distributed in-memory database, the distributed in-memory database comprising a plurality of tables located on a plurality of distributed nodes;
generating, based at least in part on a set of table redistribution parameters, a table redistribution plan comprising redistribution of a table of the plurality of tables, the set of table redistribution parameters comprising a grouping parameter indicating at least one other table with which the table should be collocated; and
executing the table redistribution plan, the executing comprising moving the table from a first node of the plurality of distributed nodes to a second node of the plurality of distributed nodes.

### Claim 7 (depends on 6)

A system as in claim 6, wherein the moving occurs during runtime, and the moving comprises moving a working memory part of the table and/or table partition to the second node but not moving a persistence part of the table and/or table partition.

### Claim 8 (depends on 6)

A system as in claim 6, wherein the operations further comprise writing the persistence part to the second node during a next delta merge of the distributed database.

### Claim 9 (depends on 6)

A system as in claim 6, wherein the table redistribution plan comprises requiring that all tables having a same group name have a same number of level 1 partitions, and wherein the operations further comprise determining a number of partitions required for a largest table of the tables having the same group name and using that number of partitions as the same number of level partitions for all of the table having the same group name.

### Claim 10 (depends on 6)

A system as in claim 6, wherein the set of table redistribution parameters further comprises at least one of a database landscape makeup, a hardware constraint representative of the plurality of nodes, and table classification information pertaining to the table.

### Claim 11 (depends on 6)

A system as in claim 6, wherein the computer circuitry comprises:
at least one programmable processor; and
a machine-readable medium storing instructions that, when executed by the at least one programmable processor, cause the at least one programmable processor to perform the operations.

### Claim 12

A computer-implemented method comprising:
determining that a redistribution of a plurality of tables is required in a distributed in-memory database, the distributed in-memory database comprising a plurality of tables located on a plurality of distributed nodes;
generating, based at least in part on a set of table redistribution parameters, a table redistribution plan comprising redistribution of a table of the plurality of tables, the set of table redistribution parameters comprising a grouping parameter indicating at least one other table with which the table should be collocated; and
executing the table redistribution plan, the executing comprising moving the table from a first node of the plurality of distributed nodes to a second node of the plurality of distributed nodes.

### Claim 13 (depends on 12)

A computer-implemented method as in claim 12, wherein the moving occurs during runtime, and the moving comprises moving a working memory part of the table and/or table partition to the second node but not moving a persistence part of the table and/or table partition.

### Claim 14 (depends on 12)

A computer-implemented method as in claim 12, further comprising writing the persistence part to the second node during a next delta merge of the distributed database.

### Claim 15 (depends on 12)

A computer-implemented method as in claim 12, wherein the table redistribution plan comprises requiring that all tables having a same group name have a same number of level 1 partitions, and wherein the operations further comprise determining a number of partitions required for a largest table of the tables having the same group name and using that number of partitions as the same number of level partitions for all of the table having the same group name.

### Claim 16 (depends on 12)

A computer-implemented method as in claim 12, wherein the set of table redistribution parameters further comprises at least one of a database landscape makeup, a hardware constraint representative of the plurality of nodes, and table classification information pertaining to the table.

### Claim 17 (depends on 12)

A computer-implemented method as in claim 12, wherein the determining, the generating, and the executing are performed by at least one system comprising computer circuitry.
