Defining a computational partition group
Defining a computational partition group enables the optimizer to use a plan that distributes nickname data to the partitions of the computational partition group. You define a computational partition group to enable interpartition query parallelism for queries or parts of queries that reference only nicknames.
Before you begin
Before you begin
- DB1: CPG contains nodes 1, 2, 3, and 4
- DB2: CPG contains nodes 49, 50, and 53
- DB3: CPG contains nodes 78 and 96
About this task
Restrictions
The optimizer uses computational partition groups for only the parts of a query that reference nicknames without referencing local data.
Procedure
To define a computational partition group, issue the following command at the command line.
db2set DB2_COMPPARTITIONGROUP=partitiongroup_name
where partitiongroup_name is the name of the partition group that you want to define as the computational partition group. The partition group must already be defined, and can be either a user-defined group or the default partition group IBMDEFAULTGROUP.
db2set DB2_COMPPARTITIONGROUP=FINANCE3