58 lines
3.5 KiB
HTML
58 lines
3.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="reference" />
|
||
|
<meta name="DC.Title" content="Table size" />
|
||
|
<meta name="abstract" content="The size of the tables that your application program accesses has a significant impact on the performance of the application program." />
|
||
|
<meta name="description" content="The size of the tables that your application program accesses has a significant impact on the performance of the application program." />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzaikdbdesign.htm" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1999, 2006" />
|
||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1999, 2006" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="tablesize" />
|
||
|
<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>Table size</title>
|
||
|
</head>
|
||
|
<body id="tablesize"><a name="tablesize"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Table size</h1>
|
||
|
<div><p>The size of the tables that your application program accesses has
|
||
|
a significant impact on the performance of the application program.</p>
|
||
|
<div class="section"><p>Consider the following: </p>
|
||
|
<dl><dt class="dlterm">Large row length:</dt>
|
||
|
<dd>For sequentially accessed tables that have a large row length because
|
||
|
of many columns (100 or more), you may improve performance by dividing the
|
||
|
tables into several smaller ones, or by creating a view. This assumes that
|
||
|
your application is not accessing all of the columns. The main reason for
|
||
|
the better performance is that I/O may be reduced because you will get more
|
||
|
rows per page. Splitting the table will affect applications that access all
|
||
|
of the columns because they will incur the overhead of joining the table back
|
||
|
together again. You must decide where to split the table based on the nature
|
||
|
of the application and frequency of access to various columns.</dd>
|
||
|
<dt class="dlterm">Large number of rows:</dt>
|
||
|
<dd>If a table has a large number of rows, construct your <span class="keyword">SQL</span> statements
|
||
|
so that the <a href="rzaikoptimizer.htm#optimizer">Optimizer</a> uses an index
|
||
|
to access the table. The <a href="indexes.htm#indexes">use of indexes</a> is
|
||
|
very important for achieving the best possible performance.</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaikdbdesign.htm" title="Use the following topics to determine what tables you require in your database and to understand the relationship between those tables.">Database design</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|