# US 2015/0149509 A1 · Table placement 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/0149509 A1
- Document ID: US20150149509A1
- Status: Published application
- Kind: A1
- Application number: 14/090,799
- Filed: 2013-11-26
- Published: 2015-05-28
- Earliest claimed: 2013-11-26
- Assignees: Sap SE
- Inventors: Hans-Joerg Leu; Christian Bensberg; Johannes Beigel; Jochen Becker; Carsten Mueller
- Web page: https://patentgrep.com/patent/US20150149509A1

## CPC

- G06F 16/24554: {Unary operations; Data partitioning operations}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A node type of a plurality of distributed nodes to which a table to be added to a distributed database should be assigned can be identified by applying a set of placement rules defined for the table. The set of placement rules can also be applied to determine whether the table should be partitioned into more than one partition. A table group name associated with the table can be obtained and used in conjunction with the node type and determination of whether to partition the table to store the table in the distributed database on at least one node of the plurality of nodes as one or more partitions.

## 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:
identifying a node type of a plurality of distributed nodes to which a table to be added to a distributed database should be assigned, the identifying comprising applying a set of placement rules defined for the table, the distributed database comprising a plurality of tables located on the plurality of distributed nodes;
determining whether the table should be partitioned into more than one partition, the determining comprising applying the set of placement rules;
obtaining a table group name associated with the table; and
storing the table in the distributed database on at least one node of the plurality of nodes as one or more partitions according to the identified node type, the determining of whether to partition the table, and the obtained group name.

### Claim 2 (depends on 1)

A computer program product as in claim 1, wherein the determining whether the table should be partitioned comprises:
detecting that the table has reached a maximum record threshold for partitioning, the set of placement rules specifying the maximum record threshold; and
determining a predefined number of table partitions specified by the table placement rules; and
choosing the at least one node from one or more nodes of the plurality of nodes based on a node type specified for the table in the set of table placement rules.

### Claim 3 (depends on 1)

A computer program product as in claim 1, wherein the operations further comprise:
detecting that at least one of the more than one partition has reached a maximum record threshold for repartitioning, the set of placement rules specifying the maximum record threshold;
partitioning all partitions of the table into a predefined number of new table partitions specified by the table placement rules; and
locating the new table partitions onto an equal number of nodes of the plurality of nodes such that the new table partitions are located on nodes having the node type.

### Claim 4 (depends on 1)

A computer program product as in claim 1, wherein the operations further comprise:
detecting that an average record count of the more than one table partition has reached a maximum record threshold for repartitioning, the set of placement rules specifying the maximum record threshold;
verifying availability of a number of nodes in the plurality of nodes having the node type is at least double a current number of the more than one table partition;
repartitioning the more than one table partition to double the current number of table partitions by creating a new table partition for each of the more than one table partition; and
placing the new table partitions onto the number of nodes for which availability was verified.

### Claim 5 (depends on 1)

A computer program product as in claim 1, wherein the node type comprises at least one of a server type and a specific node identity.

### Claim 6

A system comprising:
computer circuitry configured to perform operations comprising:
identifying a node type of a plurality of distributed nodes to which a table to be added to a distributed database should be assigned, the identifying comprising applying a set of placement rules defined for the table, the distributed database comprising a plurality of tables located on the plurality of distributed nodes;
determining whether the table should be partitioned into more than one partition, the determining comprising applying the set of placement rules;
obtaining a table group name associated with the table; and
storing the table in the distributed database on at least one node of the plurality of nodes as one or more partitions according to the identified node type, the determining of whether to partition the table, and the obtained group name.

### Claim 7 (depends on 6)

A system as in claim 6, wherein the determining whether the table should be partitioned comprises:
detecting that the table has reached a maximum record threshold for partitioning, the set of placement rules specifying the maximum record threshold; and
determining a predefined number of table partitions specified by the table placement rules; and
choosing the at least one node from one or more nodes of the plurality of nodes based on a node type specified for the table in the set of table placement rules.

### Claim 8 (depends on 6)

A system as in claim 6, wherein the operations further comprise:
detecting that at least one of the more than one partition has reached a maximum record threshold for repartitioning, the set of placement rules specifying the maximum record threshold;
partitioning all partitions of the table into a predefined number of new table partitions specified by the table placement rules; and
locating the new table partitions onto an equal number of nodes of the plurality of nodes such that the new table partitions are located on nodes having the node type.

### Claim 9 (depends on 6)

A system as in claim 6, wherein the operations further comprise:
detecting that an average record count of the more than one table partition has reached a maximum record threshold for repartitioning, the set of placement rules specifying the maximum record threshold;
verifying availability of a number of nodes in the plurality of nodes having the node type is at least double a current number of the more than one table partition;
repartitioning the more than one table partition to double the current number of table partitions by creating a new table partition for each of the more than one table partition; and
placing the new table partitions onto the number of nodes for which availability was verified.

### Claim 10 (depends on 6)

A system as in claim 6, wherein the node type comprises at least one of a server type and a specific node identity.

### 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:
identifying a node type of a plurality of distributed nodes to which a table to be added to a distributed database should be assigned, the identifying comprising applying a set of placement rules defined for the table, the distributed database comprising a plurality of tables located on the plurality of distributed nodes;
determining whether the table should be partitioned into more than one partition, the determining comprising applying the set of placement rules;
obtaining a table group name associated with the table; and
storing the table in the distributed database on at least one node of the plurality of nodes as one or more partitions according to the identified node type, the determining of whether to partition the table, and the obtained group name.

### Claim 13 (depends on 12)

A computer-implemented method as in claim 12, wherein the determining whether the table should be partitioned comprises:
detecting that the table has reached a maximum record threshold for partitioning, the set of placement rules specifying the maximum record threshold; and
determining a predefined number of table partitions specified by the table placement rules; and
choosing the at least one node from one or more nodes of the plurality of nodes based on a node type specified for the table in the set of table placement rules.

### Claim 14 (depends on 12)

A computer-implemented method as in claim 12, further comprising:
detecting that at least one of the more than one partition has reached a maximum record threshold for repartitioning, the set of placement rules specifying the maximum record threshold;
partitioning all partitions of the table into a predefined number of new table partitions specified by the table placement rules; and
locating the new table partitions onto an equal number of nodes of the plurality of nodes such that the new table partitions are located on nodes having the node type.

### Claim 15 (depends on 12)

A computer-implemented method as in claim 12, further comprising:
detecting that an average record count of the more than one table partition has reached a maximum record threshold for repartitioning, the set of placement rules specifying the maximum record threshold;
verifying availability of a number of nodes in the plurality of nodes having the node type is at least double a current number of the more than one table partition;
repartitioning the more than one table partition to double the current number of table partitions by creating a new table partition for each of the more than one table partition; and
placing the new table partitions onto the number of nodes for which availability was verified.

### Claim 16 (depends on 12)

A computer-implemented method as in claim 12, wherein the node type comprises at least one of a server type and a specific node identity.

### Claim 17 (depends on 12)

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