ibm-information-center/dist/eclipse/plugins/i5OS.ic.dbmult_5.4.0.1/planpart.htm

82 lines
5.5 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="concept" />
<meta name="DC.Title" content="Plan for partitioning with DB2 Multisystem" />
<meta name="abstract" content="In most cases, you should plan ahead to determine how you want to use partitioning and partitioning keys." />
<meta name="description" content="In most cases, you should plan ahead to determine how you want to use partitioning and partitioning keys." />
<meta name="DC.subject" content="partitioning, planning, considerations for setting up, advantages of SMP" />
<meta name="keywords" content="partitioning, planning, considerations for setting up, advantages of SMP" />
<meta name="DC.Relation" scheme="URI" content="ption.htm" />
<meta name="DC.Relation" scheme="URI" content="../sqlp/rbafykickoff.htm" />
<meta name="DC.Relation" scheme="URI" content="../dbp/rbafokickoff.htm" />
<meta name="DC.Relation" scheme="URI" content="custdd.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="planpart" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Plan for partitioning with DB2 Multisystem</title>
</head>
<body id="planpart"><a name="planpart"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Plan for partitioning with DB2 Multisystem</h1>
<div><p>In most cases, you should plan ahead to determine how you want
to use partitioning and partitioning keys.</p>
<p>How should you systematically divide the data for placement on other systems?
What data do you frequently want to join in a query? What is a meaningful
choice when doing selections? What is the most efficient way to set up the
partitioning key to get the data you need?</p>
<p>When planning the partitioning, you should set it up so that the fastest
systems receive the most data. You need to consider which systems take advantage
of symmetric multiprocessing (SMP) parallelism to improve database
performance. Note that when the query optimizer builds its distributed access
plan, the optimizer counts the number of records on the requesting node and
multiplies that number by the total number of nodes. Although putting most
of the records on the SMP systems has advantages, the optimizer can offset
some of those advantages because it uses an equal number of records on each
node for its calculations. For information about SMP, see SQL Programming
Concepts and Database Programming.</p>
<p>If you want to influence the partitioning, you can do so. For example,
in your business, you have regional sales departments that use certain systems
to complete their work. Using partitioning, you can force local data from
each region to be stored on the appropriate system for that region. Therefore,
the system that your employees in the Northwest United States region use contains
the data for the Northwest Region.</p>
<p>To set the partitioning, you can use the PTNFILE and PTNMBR parameters
of the CRTPF command. Use the Change Node Group Attributes (CHGNODGRPA) command
to redistribute an already partitioned file. See Customizing the distribution
of data with DB2<sup>®</sup> Multisystem
for more information.</p>
<p>Performance improvements are best for queries that are
made across large files. Files that are in high use for transaction processing
but seldom used for queries might not be the best candidates for partitioning
and should be left as local files.</p>
<p>For join processing, if you often join two files on a specific field, you
should make that field the partitioning key for both files. You should also
ensure that the fields are of the same data type.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="ption.htm" title="Partitioning is the process of distributing a file across the nodes in a node group.">Partitioning with DB2 Multisystem</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="../sqlp/rbafykickoff.htm">SQL Programming Concepts</a></div>
<div><a href="../dbp/rbafokickoff.htm">Database Programming</a></div>
<div><a href="custdd.htm" title="Because the system is responsible for placing the data, you do not need to know where the records actually reside. However, if you want to guarantee that certain records are always stored on a particular system, you can use the Change Node Group Attributes (CHGNODGRPA) command to specify where those records reside.">Customization of data distribution with DB2 Multisystem</a></div>
</div>
</div>
</body>
</html>